Is there a way to check an SSH based backup repo (made with replica=cbt) ?
I tried :
/scratch/XSI/XSIBackup-DC/xsibackup --check=full root@backup-host:22:/volume2/xsibackup-dc/TestVM
which results in :
2022-01-04T11:19:42 | Error code 3106 at file xsibackup.c, line 3106 | Error description: could not find any file or dir at /volume2
--check action can only be performed locally, run at the remote end.
You can safely register the remote replica on top of a snapshot using the --options=R argument, then switch it on and verify whatever you need.
Do not delete the replica snaphot, the subsequent --replica cycles will take care to discard it and create a new one.
I'm at little lost there. My goal is to verify that the replica was succesfully made, but I want to auomate this 100%, so it runs right after a backup. Ideally I don't want to actually start the VM since that would cause IP conflicts and such.
Actually the copy algorithm is robust enough so that an additional certification by means of a checksum on the whole files is kind of redundant.
Still, you can --check the replica from the remote end if you will. Just launch a --check command after your --replica job:
The example below would assume your working dir is the installation dir, adapt your paths accordingly.
ssh -i xsibackup_id_rsa firstname.lastname@example.org "/remote/path/to/xsibackup --check /your/target/directory/VM_NAME && echo 'sucess' || echo 'failure'"
As the product evolves we will add more features to simplify these kind of tasks.