(see doku/policy.md for general idea)
- buy two large external USB harddrives
- format each drive (I use
ext4
) - set label to
backupN
, where N is the number of the disk. e.g.:sudo e2label /dev/sdx1 backup1 # replace sdx1 by correct value
(The scripts are tested with Debian "Buster" and borg 1.1.4)
- checkout this repo to
/root/backup
- Adjust all paths (replace all occurences of
nchiapol
) - store the passphrase you want to use for your encryption-keys in the file
/root/backup/borg-passphrase
(Make sure its only readable by rootchmod 400 /root/backup/borg-passphrase
) - plug-in backup disk and run
setup.sh
- plug-in second disk and run
setup.sh
- add a cronjob for root
crontab -e
15 21 * * * /root/backup/scripts/backup_home.sh
- copy file
helpers/10-udisks.pkla
to/etc/polkit-1/localauthority/50-local.d
and adjustIndentity
to match the user used when mounting in the backup scripts
- create a directory to store the mail backups (e.g.
~/.mail-backup
) - add subfolder
archives
- setup KMail's 'Archive Mail Agent'
Path: ~/.mail-backup/archives Backup each: 1 Days Maximum number of archives: 1
- add (user-)cronjob to run
helpers/unpack_archive.py
for each account a few minutes before thebackup_home.sh
cronjob