I recently implemented a backup workflow for me. I heavily use restic for desktop backup and for a full system backup of my local server. It works amazingly good. I always have a versioned backup without a lot of redundant data. It is fast, encrypted and compressed.

But I wondered, how do you guys do your backups? What software do you use? How often do you do them and what workflow do you use for it?

  • Vintor@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    8 hours ago

    I’ve found that the easiest and most effective way to backup is with an rsync cron job. It’s super easy to setup (I had no prior experience with either rsync or cron and it took me 10 minutes) and to configure. The only drawback is that it doesn’t create differential backups, but the full task takes less than a minute every day so I don’t consider that a problem. But do note that I only backup my home folder, not the full system.

    For reference, this is the full line I use: sync -rau --delete --exclude-from=‘/home/<myusername>/.rsync-exclude’ /home/<myusername> /mnt/Data/Safety/rsync-myhome

    “.rsync-exclude” is a file that lists all files and directories I don’t want to backup, such as temp or cache folders.

    (Edit: two stupid errors.)

    • dihutenosa@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 minutes ago

      Rsync can do incremental backups with a command-line switch and some symlink jugglery. I’m using it to back up my self-hosted stuff.

    • everett@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 hour ago

      only drawback is that it doesn’t create differential backups

      This is a big drawback because even if you don’t need to keep old versions of files, you could be replicating silent disk corruption to your backup.