• 0 Posts
  • 1 Comment
Joined 7 months ago
cake
Cake day: August 19th, 2024

help-circle
  • Vintor@lemm.eetoLinux@lemmy.mlHow do you backup?
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    9 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.)