Seems there should be an ability to do incremental backups. I realize for Windows VMs this may be a challenge but for Linux it may not be too bad. I sent Joe a script written by a buddy Chris Wik which does this. I have 17 VMs which are spread across 4 hosts which all tie into FreeNAS via their own dedicated jumper directly to the NAS. It takes nearly 9 hours to complete the backups every night.
Status:
Active
Comments
Submitted by JamieCameron on Fri, 09/02/2016 - 01:21 Comment #1
I suppose that maybe this could be done with rsync in theory - however it would preclude compression of the backup, so the end result might be that the backup is larger and takes longer!
It turns out to be faster and takes up less space. Did you look over that script I emailed to Joe and you a while back? I don't know exactly what he uses but its fast. That's why Chris Wik does it that way at ANU internet. I'm happy to beta test anything you want.
Submitted by JamieCameron on Sun, 09/04/2016 - 00:01 Comment #3
How would it take less space though? Because the backup isn't compressed, the size of a full backup would be larger.
Compress it.
Courtesy of Chris Wik. Perhaps it'll help.
Here's my script, sold as seen, no guarantees :-) It has been working great for us for many years with only minor tweaks here and there. It requires the perl-Linux-LVM and gcc packages, the former can be found in rpmforge.
The config file contents are as follows, I put it in /etc/backup.conf but you could change that to suit:
This assumes you are running an rsync server, if you want to use ssh for transport change $rsync_args accordingly. If you're using a public network for transferring the backups, use SSH!
Submitted by JamieCameron on Sun, 09/04/2016 - 16:14 Comment #5
Ah, so you're doing the rsync at the filesystem level rather than of the VM disk image?
That would save some space because the backup no longer has to include empty blocks, but for a full filesystem I'd expect that it would be larger than a compressed disk image.
Chris has been using it and it seems to work well. This could afford a good revert to point in time feature rather than the whole image from the nightly backup.
Jamie, has there been any thought given to how to speed this up? It's taking over 9 hours to do these backups. Any solutions you suggest?
Submitted by JamieCameron on Mon, 09/26/2016 - 22:05 Comment #8
I have some ideas, but haven't built anything yet.
Submitted by JamieCameron on Mon, 09/26/2016 - 22:06 Comment #9
Another option if you just want a way to do fast restores on the same system is to use snapshots, which are fully supported in Cloudmin already and are instantaneous.