I'm reading through the Handbook 19.10 Backup Basics and will likely follow the instructions on dump & restore, but I wanted to check in with the forum and see if there were any pearls you can offer me first. A GUI option would be nice but I'm happy to use the terminal.
I have two backups -- one that adds my files to all I ever made, and the other that is just a mirror of my home directory. With multiple users on a box, every user's home gets backedup (is that a word?). In case of a meltdown, I just install the system anew, so I only need to backup my files and system settings.
I have copies of system files like
/etc/rc.conf /boot/loader.conf /etc/hosts etc. in my 'admin stuff' directory, so I don't have to bother backing them up separately. I use two 500GB USB external hard drives for the backups, they are stored away from my computer with their volume names taped on them.
The backups are simply done with
net/rsync. For easy handling, I made two aliases to run the commands. `bak-all' is the incremental backup, `bak-now' is the mirror.
Code:
bak-all rsync -az --info=progress2 --exclude-from=/media/bsd_all/exclude-list-rsync.txt /home/ /media/bsd_all/HOME_backup_all/ ; ( echo incremental backup @FreeBSD ; date ; echo ---------- ) >> /media/bsd_all/backup.bsd_all.log
bak-now rsync -az --info=progress2 --delete --exclude-from=/media/bsd_now/exclude-list-rsync.txt /home/ /media/bsd_now/HOME_backup_now/ ; ( echo mirror backup @FreeBSD ; date ; echo ---------- ) >> /media/bsd_now/backup.bsd_now.log
I found out that it is rather important to check if the backup volume is mounted in the same place as where rsync writes the files to, prior to running rsync.
The command uses an exclude-file to prevent a bazillion useless cache files and iso-files to be backupped. Further it writes a few lines to a log file on the backup volume to keep track of the backups I've done.
The backups ave one disadvantage: I have to run them manually, have to fetch the hard drives first, mount them, etc. I just have to remind myself making backups more frequently.