jetbackup5api Backup Job creation

cPanel, Industry leading hosting platform with world-class support.
Post Reply
someJBuser
Posts: 1
Joined: March 2nd, 2023, 6:28 pm

jetbackup5api Backup Job creation

Post 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'
JetAppsAdam
Staff Member
Staff Member
Posts: 74
Joined: August 5th, 2022, 11:01 pm

Re: jetbackup5api Backup Job creation

Post 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'
Thank you,

Adam G
JetApps, LLC.
JetApps.com | JetBackup.com
Post Reply