proxmox backups

Lamarus

Well-Known Member
Sep 18, 2017
52
0
46
Hi! Would you so kindly answer my question? Is there anywhere a tool to check backup images are recoverable. I mean that image is not broken. Thank you for your future answer!
 
Hi,
I don't know of any such tool. But I guess the simplest way would be to restore the backup with a different ID (to not over-write the existing VM). In the GUI, go to [your backup storage] > Contents > [backup file] > Restore and it should select a new ID automatically.
 
Hi,
I don't know of any such tool. But I guess the simplest way would be to restore the backup with a different ID (to not over-write the existing VM). In the GUI, go to [your backup storage] > Contents > [backup file] > Restore and it should select a new ID automatically.
Thank you for helping me. I have many vm's in two dc and I think about a tool that would check backups' validity automatically.
 
If you only want to check whether the compressed file is not corrupt, you could use a simple script decompressing the file to /dev/null. For example, for an lzo-compressed image
Code:
lzop -dc vzdump-lxc-100-2020_04_30-09_45_02.tar.lzo > /dev/null

If you want to test full restores automatically you could write a script using qmrestore and qm destroy, where you'll have to be careful with the IDs you use. But of course there's a potentially big performance hit in doing so.
 
If you only want to check whether the compressed file is not corrupt, you could use a simple script decompressing the file to /dev/null. For example, for an lzo-compressed image
Code:
lzop -dc vzdump-lxc-100-2020_04_30-09_45_02.tar.lzo > /dev/null

If you want to test full restores automatically you could write a script using qmrestore and qm destroy, where you'll have to be careful with the IDs you use. But of course there's a potentially big performance hit in doing so.
ok, thank you once again.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!