82
submitted 1 year ago by sbeak@sopuli.xyz to c/selfhosted@lemmy.world

Lots of people have mentioned rsynx, restic, borgbackup, and others, but which would be best for backing up nextcloud, immich, and radicale? Do all of them have a method of automatically backing up every X days/weeks? Why use one over the other, what are the differences?

you are viewing a single comment's thread
view the rest of the comments
[-] PlutoniumAcid@lemmy.world 5 points 1 year ago

Simple file copying is easy and smart.

What do you do about databases? I'm guessing you are running some containers that have a database, like paperless and many others.

[-] drkt@scribe.disroot.org 4 points 1 year ago

I'm not backing up any databases that are so intensively used that I can't live-copy them. Most of my databases (SQLite) sit idle until I explicitly do something to them. SQLite doesn't really care about it unless it's actively writing to the database.

[-] WhatAmLemmy@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

This is why I switched everything to single disk ZFS. The ability to snapshot everything with zero downtime, including data in case I ever misconfig something, as well as replicate all of it to other ZFS drives offsite in the most efficient way possible — including encrypted data without transferring the keys — was a no brainier.

It isn't a full backup strategy, but it has features that no other backup software can do anywhere near as easily or efficiently.

[-] confusedpuppy@lemmy.dbzer0.com 2 points 1 year ago

Container databases seem as simple as shutting down a container, running a backup and then starting the container again. Although my my experience is only from hosting a Lemmy/PieFed instance. I did make many backups and restores with no issues to the database. It all worked as I intended it to work.

I would imagine a similar process for non container databases. Stop, backup, restart. Although someone with more experience would be better to answer that.

[-] Lem453@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

I use a docker container that uses the MySQL/postgress dump command to create database dumps every hour with a retention policy. The dump is placed into docker data directory.

My docker data directories are in a parent directory on the host.

Borgbackup then runs the backup on this one directory. Like the other reply mentions, this is probably overkill since the database doesn't isn't being written too that intensivley but the resources needed to do this are minimal so its not a big deal once you know how to set it up.

https://github.com/Martlark/pg_dump

https://github.com/fradelg/docker-mysql-cron-backup

this post was submitted on 13 Jul 2025
82 points (98.8% liked)

Selfhosted

62096 readers
154 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS