]>
code.delx.au - monosys/blob - scripts/backup-generic
3 # Run this at a lower priority to avoid disrupting the rest of the system
4 # Exclude other filesystems from the backup. This leaves only the files we
5 # want, on the root file system, to back up.
6 # Also exclude other large collections of files which we don't care to save.
8 if [ -f /.backup_running
]; then
9 echo "Backup already running!"
13 touch /.backup_running
17 --exclude-other-filesystems \
21 --exclude '/var/cache/apt/archives' \
22 --exclude '/var/log' \
26 ionice
-c3 nice
-n5 rdiff-backup
-v1 --remove-older-than 60D
/backup
/
28 rm -f /.backup_running