#1 2018-12-01 14:29:25

matz
Member
Registered: 2017-06-28
Posts: 29

on success and on error

Hello!

Im trying to schedule job with --on-success and --on-error commands.
My 1st job:

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=OneDiff \
--certify-backup=yes \
--backup-point=83.144.x.x:2255:"/vmfs/volumes/backup/" \
--backup-type=All \
--backup-how=Hot \
--backup-id=01 \
--description="ALL2OCM" \
--use-smtp=2 \
--mail-to=x@x.com \
--on-success="backupId->02" \
--on-error="backupId->02" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

And my 2nd job look like:

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \
--host=83.144.x.x:2255 \
--certify-backup=yes \
--override=xsibakfilter \
--backup-point=/vmfs/volumes/backup/deduplicated \
--backup-type=All \
--backup-how=Hot \
--del-dirs=+60d \
--use-smtp=2 \
--mail-to=x@x.com \
--backup-id=02 \
--description="ALLDEDU" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

And when I run 1st job i have on end:

http://prntscr.com/lpczq1

Offline

#2 2018-12-01 17:39:50

admin
Administrator
Registered: 2017-04-21
Posts: 1,364

Re: on success and on error

Backup Ids must be numeric characters three digits long 000 to 999

Offline

#3 2018-12-16 16:56:33

matz
Member
Registered: 2017-06-28
Posts: 29

Re: on success and on error

Still with no luck. Now Im trying different jobs:

1st: (remote job)

cat 001
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=OneDiff \
--host=x:22 \
--snapshot=doquiesce \
--backup-point=x:22:"/vmfs/volumes/datastore1/" \
--backup-type=Custom \
--backup-vms="MAC_INVEST" \
--backup-how=Hot \
--backup-id=001 \
--description="OneVM2esxi1" \
--on-success=""backupId->002"" \
--on-error=""backupId->002"" \
--use-smtp=2 \
--mail-to=x \

2nd: (local job)

 cat 002
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \
--snapshot=doquiesce \
--override=xsibakfilter \
--backup-point=/vmfs/volumes/datastore1/deduplicated/ \
--backup-type=Custom \
--backup-vms="MAC_INVEST_XSIBAK" \
--backup-how=Hot \
--backup-room=500 \
--del-dirs=+365d \
--use-smtp=2 \
--mail-to=x \
--backup-id=002 \
--description="LocalDedu" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

And still get:

8S8Wk8voQeiQMwWTx5ZA3Q.png

If I run remote job from host1 on host2 and want to run on-error 002, so xsi look for 002 job on host1 or host2?

Last edited by matz (2018-12-16 16:58:16)

Offline

Board footer