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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 Re: General matters » Start multiple jobs on --on-success or --on-error » 2019-08-02 09:08:48

Thanks, I got it all working now like you said :-)

Cheers!
Martin

#2 Re: General matters » Start multiple jobs on --on-success or --on-error » 2019-07-30 21:30:33

Yes, I think know what you mean but I would not be able to setup such a job with './xsibackup --menu' as the GUI only looks at backup-id's individually. So I would need to setup such job file in cron manually?

But I would still like to know if I can do something like this:

--on-success="backupId->0012, 0011" \
--on-error="backupId->0012, 0011" \

, where job '0012' is a script and '0011' is a new backup job?

Job '0012' works fine and is just writing to a file:
echo "some text about the job that just finished" >> /to/some/file.txt

Cheers!
Martin

#3 Re: General matters » Start multiple jobs on --on-success or --on-error » 2019-07-30 18:32:07

Hi again

By the way 'myscript.sh' is placed in '/vmfs/volumes/datastore1/xsi-dir/jobs' together with other jobs.

I have also tried to rename 'myscript.sh' to '0012' with no success:
--on-success="backupId->0012, 0011"

This works but it but only fires one job obviously:
--on-success="backupId->myscript.sh"

Cheers!
Martin

#4 General matters » Start multiple jobs on --on-success or --on-error » 2019-07-30 18:06:59

malinux
Replies: 5

Hi

Is it possible start multiple jobs on '--on-success' or '--on-error'?

When running './xsibackup --menu' it says something like:
--
Set the --on-success and --on-error event to chain additional ...

Examples:
- Job Id: 003, job1, ...
- Local script: /vmfs/volumes/datastore1/my_script.sh
- HTTP URL: https://...

etc.
--

'./xsibackup --menu' seems to allow it but does not accept a syntax like '003, job1'


I have a script 'myscript.sh' that just writes status to a another file. I tried this syntax but it does not work:
"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=OneDiff \
--snapshot=includememory \
--options=unreg-xsibak \
--certify-backup=yes \
--backup-point=/vmfs/volumes/datastore1 \
--backup-type=Custom \
--backup-vms="MY-LINUX" \
--backup-how=Hot \
--on-success="backupId->myscript.sh, 00011" \
--on-error="backupId->myscript.sh, 0011" \
--backup-id=0010 \
--description="0010" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"


But is it possible at all to set more than one job and what is the syntax?

Cheers!
Martin

Board footer