System Log #5: "Better" backups

On Sebastian LaVine's Blog
Published on

Currently I back up my server every once and a while by manually running this script:

#!/bin/sh

ssh root@smlavine.com tar cf - /var /usr /sbin /bin /opt /root /home /etc /bin /lib

which I then redirect to a file named something like bluebackup.2022-04-15.tar. Beyond the questionable use of SSH, this has two main drawbacks: