Backing Up A Block Storage Volume
I'm looking for options to backup my block storage volume. While I'd rather not use "rsync", are there some alternative options that I can try using?
There are some options that you can consider using, since our Backup Service does not work with our Block Storage option at this time. One option is to create a disk image of the volume and save this your location or another Linode. This can be done by copying the disk over a ssh connection, which we have a guide that can assist you with this process.
The next option would be to utilize our Object Storage option to backup your storage volume. The one caveat to this is that uploading data from the block storage volume to the object storage volume might be billable and count towards your network transfer quota since this is considered to be outbound traffic. You can reference our documentation for additional insight regarding this particular option.
Along with these options, there are alternative Linux backup solutions that you can consider using. While "rsync" is referenced in this documentation, this site lists 23 other backup solutions that you can consider trying for your block storage volume.
I see that there is now a Clone Volume feature available by going to your Volume page and using the ellipsis menu "…" next to your volume, and choosing Clone Volume.
You can back up your volume to object storage using borg backup or restic.
I use borg…
@stevewi - Just wondering if you'd mind sharing a high-level overview of how you do this? If I've understood correctly (?) Borg doesn't directly work with object storage as it requires SSH. So do you backup to a Linode and use S3Fuse, or similar? Would be interesting to know a little more of your set up!
So do you backup to a Linode and use S3Fuse, or similar?
Yes…exactly…the Linode where the block storage volume is mounted to be exact.
borg runs inside a shell script that takes care of the administrativia…mounts, umounts, etc.
I have 4 buckets — hourly (every 4 hours), daily, weekly and monthly — with different retentions for each. I use zstd compression.
The script implements an “exclusion list” (similar in concept to tar —exclude*) so I don’t back up transient stuff like sockets, /tmp directories, etc.
Ah cool - that's super helpful. Going to give it a go :) Thanks for your response @stevewi