You are not logged in.
Pages: 1
The following commands work when I run them from a bash script (sh file and without the --time parameter). But when these commands are put into my xsibackup-cron file, only the first command is triggered and successfully completed. The --on-success does not trigger the second command when run from inside of my cron file (xsibackup-cron).
/vmfs/volumes/datastore1/xsi-dir/xsibackup --time="Mon 03:00|Tue 03:00|Wed 03:00|Thu 03:00|Fri 03:00|Sat 03:00|Sun 03:00" --backup-point=/vmfs/volumes/MacNFS/XSIBackupVMS --backup-how=hot --backup-type=custom --backup-vms="Windows 10 x64 Pro" --backup-prog=vmkfstools --date-dir=no --mail-from=someemail1@gmail.com --mail-to=someemail2@gmail.com --smtp-srv=smtp.gmail.com --smtp-port=465 --smtp-auth=yes --smtp-sec=TLS --subject=XSIBackupReport --smtp-usr=someemail1@gmail.com --smtp-pwd=Password --on-success="backupid->01" --test-mode=false
/vmfs/volumes/datastore1/xsi-dir/xsibackup --backupid=01 --backup-point="/vmfs/volumes/MacNFS/XSIBackupVMS/$(date +'%Y-%m-%d-%H-%M')" --backup-how=hot --backup-type=custom --backup-vms="Windows 10 x64 Pro" --backup-prog=vmkfstools --date-dir=no --test-mode=false
The first command runs successfully from Cron and I get an email with no errors encountered. But the second line is not triggered with the success of the first command. I am not sure why this works from a bash script (without the --time parameter). But these same commands do not work as a cron job?
On a second question, does the ordering of the parameters within a command make any difference? So for example --on-success="backupid->01" is the second to last parameter in my first command. This parameter could just as easily been the 4 th parameter from the beginning of the first command.
I recently read your blog posting from 2-27-18 in which it is discussed combining Differential and Full Backups. I would like to be able to combine those task myself. So I have come up with a example of combining those two task and wanted to get confirmation that I am on the right track.
My proposed crontab file would contain the following commands
# Differential backup performed via OneDiff
/vmfs/volumes/datastore1/xsi-dir/xsibackup --time="Mon 17:30|Tue 17:30|Wed 17:30|Thu 17:30|Fri 17:30|Sat 17:30|Sun 17:30" --backup-point=/vmfs/volumes/MacNFS/XSIBackupVMS --backup-how=hot --backup-type=custom --backup-vms="Windows 10 x64 Pro" --backup-prog=OneDiff --date-dir=no
# Full backups performed just Mon, Wed, Fri due to space limitations on backup target
/vmfs/volumes/datastore1/xsi-dir/xsibackup --time="Mon 22:30||Wed 22:30||Fri 22:30" --backup-point=/vmfs/volumes/MacNFS/XSIBackupVMS --backup-how=hot --backup-type=custom --backup-vms="Windows 10 x64 Pro" --backup-prog=vmkfstools --date-dir=yes
Does this look correct? If you have a better example, feel free to post it.
Thanks,
Brian
Maybe I did not explain the backup target folder structure as good as I could have in my intial post. So let me try and explain it again.
Proposed XSIbackup command:
./xsibackup --backup-point="/vmfs/volumes/MacServer/XSIBackupVMS/$( date +'%m-%d-%Y-%H-%M')" --backup-type=custom --backup-vms="Ubuntu 64-bit Server 16-04-2"
The proposed xsibackup command above will create the following backup target path
/vmfs/volumes/MacServer/XSIBackupVMS/09-02-2017-01-36/Ubuntu 64-bit Server 16-04-2
But the backup target path that I really want to create, would be as follows:
/vmfs/volumes/MacServer/XSIBackupVMS/Ubuntu 64-bit Server 16-04-2/09-02-2017-01-36
And also I am not using the --date-dir=yes switch in my command line
I believe it is hard coded into the XSIbackup command to immediately append the name of the VM that is being backed up to the path that has been desiginated with the --backup-point switch. And I am trying to figure out a way of modifying this behavior.
I have been trying out the Free version of XSIBackup over the last week.
Here is one thing I am trying to accomplish so far. But I am having problems with getting it to work.
I am trying to setup a target backup path as follows:
\XSIBackupVMS\Windows 10 Pro\08-27-2017-17-23 So in other words I want a folder under XSIBackupVMS for each VM that is being backed up. And then inside of the VM folder (for example "Windows 10 Pro") I would like folders that are named by the date/time of when they were created (backed up).
--backup-point=/vmfs/volumes/MacServer/XSIBackupVMS
--backup-point="/vmfs/volumes/MacServer/XSIBackupVMS/$( date +'%m-%d-%Y-%H-%M')"
Those are the two target backup paths I have tried. But neither one is doing exactly what I want to accomplish. Can someone please
give me a idea of how to accomplish this.
Pages: 1