©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2022-01-04 12:03:10

wimg
Member
Registered: 2020-01-09
Posts: 21

Check on SSH repo

Hi,
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

Offline

#2 2022-01-04 12:54:39

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: Check on SSH repo

--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.

Offline

#3 2022-01-04 14:19:38

wimg
Member
Registered: 2020-01-09
Posts: 21

Re: Check on SSH repo

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.

Offline

#4 2022-01-04 17:44:43

admin
Administrator
Registered: 2017-04-21
Posts: 2,057

Re: Check on SSH repo

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 root@a.b.c.d "/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.

Offline

Board footer