My backup setup comprises:
/dev/backupdrive
:
/etc/udev/rules.d/local.rules
to add the line:
BUS=="scsi", SYSFS{vendor}=="Maxtor", SYSFS{model}=="Basics Desktop", NAME{all_partitions}="backupdrive"
/etc/init.d/udev restart
dm-crypt
, so the cryptsetup
utility must be used to create a decrypted device on /dev/mapper/backupdrive
,
/dev/mapper/backupdrive
is mounted at an appropriate mount point,init.d/...
script, though that would probably stall the bootup sequence until the decryption key had been entered to cryptsetup.
/etc/cron.d/rsync_backup
contains a cron directive to run a script once a day (in the middle of the night) which checks that the backup drive is actually mounted, produces some informative data which appears in the email message generated by the cron job, and runs the backup/snapshot script itself: rsync_backup_dowoy