the suggested way is to make the backup via vzdump to a remote location. e.g. we mount a samba share as a backup target on Proxmox VE.
the samba share is on our backup server where a daily backup is done to tape. so we have the data off line on a tape, every day.
The way I do things I still need to do this rotation step to keep the old backup from last night or I run the risk of not having a backup at all. I don't use tapes, just rsync, so even if I dump direct to another server via NFS or SMB, the following could still happen to me during my backup process:
1) Vzdump for CT101 starts, the vzdump-101.tgz file is removed at the start of the backup and the backup begins streaming to vzdump-101.dat.
2) Proxmox VE server dies in the middle of the CT101 vzdump, total HDD failure.
3) A bit later the nightly rsync from local backup server to other backup server goes ahead and syncs the backup directory as-is with the half-finished vzdump-101.dat and no vzdump-101.tgz.
4) I have no vzdump-101.tgz to restore from.
Regardless of where the vzdump output files are placed, it would still be nice to have a basic rotation function, otherwise vzdump falls one minor feature short of being a complete backup script for me. Move the last night's vzdump out of the way before starting on tonight's rather than simply rm'ing it. The command line option could be simple "--rotate 1" to indicate you wanted to keep one vzdump backup rotated.
If vzdump did that for me, I'd be done, no additional scripting necessary. I could just use backup from web interface, the way the web interface set it up would be all I'd need, total dummy mode. Without a rotation feature I still need to throw in some custom scripting.
Rsnapshot is nice, but I just use plain rsync to update my backups from one place to another. I use rsnapshot elsewhere for backups but it's not really the right tool just for dealing with these vzdumps. Rsnapshot uses hardlinks to conserve space so it only has to store files that have changed. Unfortunately that doesn't help when I'm just working on a directory full of large stuff that changes out every file every night. There's no real benefit to using rsnapshot as opposed to very simply scripting "mv vzdump-101.tgz vzdump-101.tgz.0" at the start of the backup process.