Re: altroot weekly.local
Stuart Henderson writes: > I would prefer to use almost anything else though and get versioned > backups. Probably my most used backup/restore action is to get back a > version of some file from yesterday so something that will only write > the changes is useful. I quite like borg for this but there are many > options. I use a slightly modified version of the script here to have a 7-day versioned backup of important files. https://lika.be/wp/2011/06/incremental-backup-script-with-daily-delta/ You can find it in various other sites, original credit seems to be tri...@linuxcare.com I've tried duplicity and one or two other more sophisticated backup tools. I like this because it uses only one very standard utility, rsync, and I find it easy to reason about and (importantly) easy to restore from. Allan
Re: altroot weekly.local
On 2021-06-22, Andrew Robertson wrote: > Is there any problem with putting ROOTBACKUP=1 in my weekly.local > instead of daily.local? I'm backing up to an SD card and it's maybe not > fast enough to back up in 24 hours, plus weekly backup would be fine. It won't do anything in weekly.local; the weekly script doesn't handle ROOTBACKUP. You could use a shell conditional in daily.local instead: [ $(date +%a) == Sun ] && ROOTBACKUP=1 I advise against using ROOTBACKUP here though. It just dd's the filesystem. If the run is taking a long time, there's a high chance that your backup will not be consistent, both due to the filesystem changing during a backup, and due to overwriting the old backup with the new one. I would prefer to use almost anything else though and get versioned backups. Probably my most used backup/restore action is to get back a version of some file from yesterday so something that will only write the changes is useful. I quite like borg for this but there are many options.
altroot weekly.local
Is there any problem with putting ROOTBACKUP=1 in my weekly.local instead of daily.local? I'm backing up to an SD card and it's maybe not fast enough to back up in 24 hours, plus weekly backup would be fine. Many thanks.