Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Make sure that you have SSH access to backupstorage.lan.soleus.nu (the local LAN variant to reduce load on the WAN interface). Add something like below to /root/.ssh/config:

...

Code Block
languagebash
titleMount the LUKS container
mkdir /mnt/backup-crypt
mount /dev/mapper/backup /mnt/backup-crypt
mkdir /mnt/backup-crypt/backup


Note
Note that the The script below assumes an fstab entry for this filesystem exists.

Finally, close everything:

...

After this setup, the shell script below should allow you to make backups. Of course the precise way and what to backup can be adapted in the backup_run() function. You can for example create LVM snapshots of your logical volumes and backup these to guarantee a consistent state, or use hardlinks to keep full backups from multiple dates with little overhead, à la rsnapshot. IJaap Eldering, author of this script, am doing both these things; feel free to contact me for more details.

...