Page 1 of 1

jetbackup5api Backup Job creation

Posted: March 2nd, 2023, 6:51 pm
by someJBuser
Just trying to create a backup job from the command line. The error the below command generates is "message: No backup type provided". Is something else missing as the type is set on the fifth variable.

jetbackup5api -F manageBackupJob -D \
'action=create&\
name=Daily-Backup-Job &\
owner_name=root &\
destination_name=MyDestination &\
type=1 &\
contains=503 &\
structure=1 &\
schedules[name]=Daily-Backup &\
schedules[retain]=10 &\
time=0130 &\
monitor[ranfor]=1 &\
monitor[notran]=1 &\
exclude_list[0]=.MirrorSearch'

Re: jetbackup5api Backup Job creation

Posted: March 7th, 2023, 7:54 am
by JetAppsAdam
Hello someJBuser,

I was able to replicate this issue on a test server and will bring this up with our development team. In the meantime, I was able to work around this issue by running the API command all on one line. Using the example command that you have provided, that would look something like this:

Code: Select all

jetbackup5api -F manageBackupJob -D 'action=create&name=Daily-Backup-Job&owner_name=root&destination_name=MyDestination&type=1&contains=503&structure=1&schedules[name]=Daily-Backup&schedules[retain]=10&time=0130&monitor[ranfor]=1&monitor[notran]=1&exclude_list[0]=.MirrorSearch'