So, I’ve found that there are a lot of ways to backup a server and anything on it, but I’m somewhat at a loss for what to use to backup everything else to that server.
For most stuff I personally can grab the files I need and back them up using a simple SMB share or rsync or whatever, but for my SO or anyone else who wants to back up is going to have a hard time. That doesn’t even cover phones - which you would want to back up fairly regularly since, you know, they get dropped. Sure, I personally can hook up tailscale and split tunnel it, and then set up sync on certain folders, but nobody else I know is going to be able to.
In a perfect world there would be a backup app that had its own little wireguard tunnel built in that could run all the traffic from wherever to my server, and would easy to set up on Android and Windows, but I don’t think that exists. So what does everyone use that does exist?
rsync:
#! /usr/bin/sh TIMESTAMP_LOG="/path/to/logdir/.backuplog" BACKUP_DEST="server:/path/to/backup/$1" TIMESTAMP=$(date +"%Y-%m-%d %H:$M:%S") echo "backup to:$BACKUP_DEST" echo "Backup: $BACKUP_DEST $TIMESTAMP" >> $TIMESTAMP_LOG pause rsync -auvh /path/to/homedir* rhudson@$BACKUP_DEST
This should be called with a name of a target subdirectory in BACKUP_DEST… mine are rsynca, rsyncb, rsyncc but I will change this soon for day of week based directories.
I also have certificate authentication setup on ssh on my server - that’s why no password is needed.
Someday I will set up tailscale between this machine and the server.