----- Le 2 Déc 20, à 12:53, Dave Sherohman <[email protected]> a écrit :
> - I'm definitely backing up the VMs as individual hosts, not as disk image
> files. Aside from minimizing atomicity concerns, it also makes single-file
> restores easier and, in the backuppc context, I doubt that deduplication would
> work well (if at all) with disk images.
It's possible to have dedup for huge files changing randomly, but it's a bit
tricky ;-)
I use this for some VM images backup :
* Suspend the VM
* Take an LVM snapshot (if available)
* Resume the VM if a snapshot was taken (almost no downtime)
* Mount the snapshot with chunkfs [0], which will make the big file appears
as a lot of small chunks
* Use BackupPC to backup the chunks
* Resume the VM if no snapshot was taken (in which case there was downtime)
With this you have dedup, and you can choose the granularity (with BackupPC v4,
I use 2MB chunks). It requires a few more steps to restore though :
* Mount the backup tree with fuse-backuppcfs
* From this mount point, re-assemble the chunks as one, virtual huge file
(still with chunkfs, which does the reverse operation)
* You can now copy the image file where you want, and unmount the two
stacked fuse mount points when done
All this workflow can be seen in my virt-backup script [1], which is a helper
for BackupPC to backup libvirt managed VM.
The same can be done with some scripting for any large binary file, or block
device.
Cheers,
Daniel
[0] [ http://chunkfs.florz.de/ | http://chunkfs.florz.de/ ]
[1] https://git.fws.fr/fws/virt-backup
--
[ https://www.firewall-services.com/ ]
Daniel Berteaud
FIREWALL-SERVICES SAS, La sécurité des réseaux
Société de Services en Logiciels Libres
Tél : +33.5 56 64 15 32
Matrix: @dani:fws.fr
[ https://www.firewall-services.com/ | https://www.firewall-services.com ]
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/