proxmox backups

Lamarus

Well-Known Member
Sep 18, 2017
52
1
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.