My current setup is a RAIDz2 with VM images stored in the raw
img format. I backup important individual files using
rsync, but sometimes I wish I had a copy of each VM so I can easily restore it if something goes terribly wrong. Wasabi is probably the best option for this because everyone else charges you to download your data which can get very expensive if you have large VM images.
- ZFS pool name -
- VM path -
- Cloned snapshot path -
You will need to install these packages:
zstd mbuffer s3cmd
Each time this script is run it will destroy the previous snapshot for the day of week it was taken on. The snapshot is then cloned so each file can be compressed and uploaded using
s3cmd. The clone is then destroyed so there are no hanging snapshots.