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?

  • drkt@scribe.disroot.org
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 months ago

    There’s a balance to pick between ease of use, ease of recovery, and security. You have to define exactly what you want, and then look at what solutions are available to do that.

    I wrote my own bash script for rsync that simply pulls copies of the vital folders and files over SSH from the machines I want backups from. Then it pushes a copy of all of that to an offsite (in-city friends house) location. There is no encryption at rest, because I choose easy of recovery over security. I also trust my friend, and there really isn’t anything that would compromise me totally, if that harddrive became available on the internet. There also aren’t multiple versions of old files, and if a file is deleted, then it is gone, because I don’t need that feature from my backup system.

    Define your needs, then shop around. No one solution does everything easily.

    • PlutoniumAcid@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months 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.

      • confusedpuppy@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months 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.

      • drkt@scribe.disroot.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months 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.

  • nfreak@lemmy.ml
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 months ago

    Not sure about other options but Backrest has worked wonderfully for me since day 1. Basically just a GUI for Restic. My only complaints are that jobs can’t be assigned to multiple repos and you can’t edit a job’s name or repo once created. Aside from those quirks, it works fine - I have daily, weekly, monthly, and manual jobs set up across both servers and my desktop, basically just set it and forget it.

    • VeryFrugal@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      It’s a GUI and a bit more than that. Restic’s biggest pain point is that periodic runs have to be set up manually. Backrest does that for you.

      Although I’m using resticprofile, just because it also works(and has a nice web hook support) but I also use backrest and I highly recommend it.

  • FlexibleToast@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    2 months ago

    I use borg with borgmatic. Heck, if you’re using Nextcloud AIO, borg is built in. It uses rsync, and takes incremental, deduplicated backups. I like it because it’s mostly just setting up ssh and a config file.

    More specifically I use Nextcloud’s built in borg and these two containers:

    Borgmatic

    Borgserver

    Edit: I forgot that for my personal devices I use PikaBackup, which also uses Borg.

  • doeknius_gloek@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    2 months ago

    The question you’re asking is too broad. Every tool somehow differs from the others, but listing all differences requires in-depth knowledge of each tool and a lot of time.

    At the end of the day, every tool somehow backs up your data. CLI interfaces, encryption algorithms, deduplication logic, supported backends, underlying programming languages and a lot more may differ. Identify what’s most important to you, test different solutions and then use the tool that works best for your use-case.

  • confusedpuppy@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    I personally use rsync since I do most my work by command line these days. It’s taken nearly half a year really understand it but it offers the flexibility I desire.

    I have a small network with only a handful of devices. I keep all my incremental backups on encrypted partitions and encrypted detachable SSD’s which I manually decrypt. Rsync is set up to use SSH so there’s some form of encrypted transfers but that’s not actually a priority for me, just an added benefit.

    I also use rsync to sync files and directories while maintaining additional system attributes across multiple systems. That is to say, what’s root or user accessible stays root or user accessible after the transfer is complete.

    If I desired more protection, I’d probably look into Borg backup. Currently I just use encryption as an annoyance deterrence method. I also stick to the base Rsync command because every other option I tried brought with it complexities which have all failed me. I at least have a high level confidence in my backup/restore process now.

  • Fermiverse@gehirneimer.de
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    syncthing fom mobile direct sync to zfs mirror homeserver as soon as within home wlan. Same with PC files.

    rclone sync via cron weekly to cloud server, encrypted.

    security cams direct encrypted sync to zfs and cloud as soon as something is recorded.

  • uranibaba@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 months ago

    I am currently looking into borg because it can take incremental backups. I just need figure out how I should handle a running system, if I need to turn of all my docker images or if there is some kind of snapshot function I can use.

    From what I read on their FAQ, Borg cannot verify the integrity so I would need to turn everything off during the backup process. A filesystem like ZFS could have solved that problem (cannot find the link, something about shadow copy I think?) but since I don’t have a backup yet nor physical access, I need to work with what I have.

    I think I will set it to take a backup every night.

    EDIT: Maybe it can verify integrity? Still trying to find information on my use case. https://borgbackup.readthedocs.io/en/stable/usage/check.html

  • The Zen Cow Says Mu@infosec.pub
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    I use borg (borgmatic) to back up home server to home nas. The only major disadvantage of borg is that it requires running borg also on the receiving end, so it doesn’t work with a lot of cloud storage providers like S3.

    Restic can work with most everything as a backup target.

  • JoeKrogan@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    I do monthly backups with cron and tar and syncthing for my containers.

    I do quarterly backups of my server (14TB) to external USB HDDs. This is done via a script that mounts the drives, runs rsync to copy, then unmounts the drives again and emails me when it is done. I dont bother encrypting them as it ia mainly just media.