It’s now been roughly a year since I’ve been using Virtualmin, and I decided to celebrate by refining my backup routine. I’d been doing full daily backups and copying them over to Backblaze using rclone with 14-day retention. (Back then, Backblaze wasn’t S3-compatible. It is now, but I still prefer rclone.)
The thing is that I have several sites with huge amounts of static image and video files (and I built another over the weekend), so the daily full backups were getting ridiculous. I’d done them at first because I was new to Virtualmin and wanted as much backup as I could get. Today I decided to clean things up.
I started by deleting all the backups locally and remotely. Then I set up weekly full backups and daily incrementals to /backup/weekly and backup/daily respectively (along with the existing /backup/server for the server configuration). I also reduced the retention from 14 days to 7 to save space because image and video files don’t compress especially well.
I added the following as a post-backup script to the weekly and daily backups:
rclone sync -v /backup backblaze:{my-bucket-name} --transfers 8
Previously I’d been using
rclone copy /backup backblaze:{my-bucket-name} --transfers 8
which would be wasteful in this instance because it would transfer the full backup every day the sync
command skips unchanged files.
Then I manually ran both the full and incremental backups, and they ran and synced perfectly.
The advantages are less load on the server, less bandwidth used for transfer, less storage used on Backblaze, and seven days of incremental restore points stored both locally and remotely. I’ve never needed more than one on any server I ever managed, so seven should be fine.
Richard