Backup Jobs

manageBackupJob

This function allows you to create/modify the Backup Job Object.


getBackupJob

This function prints the objects data given its Backup Job ID.


listBackupJobs

This function lists all Backup Job Objects.


duplicateBackupJob

Function duplicates the given Backup Job's configuration as a new Backup Job.


runBackupJobManually

Function manually runs the Backup Job given its Backup Job ID.


deleteBackupJob

This function allows you to delete the object given its Backup Job ID.


Parameter Dictionary

Backup Job Object

Parameter name Type Description Possible values Example
_id String Unique Backup Job ID   {_id: 5fcb1df43606876d134aab82}
name String Backup Job name used internally for your convenience.   "Full Account Backups"
destination List [] List of Destination IDs assigned for this backup job.    
destination_name List [] Names of the destinations assigned to this backup job.    
type Integer The integer value for the Backup Type
Incremental 1
Directories 2
{type: 1}
contains Integer The integer value for Contains. Full backup accounts will be the value of 511 which is 1+2+4+8+16+32+64+128+256(for all available backup options) (or 1|2|4|8|16|32|64|128|256 in binary operation).
Account Config 1
Account Homedir 2
Account Databases 4
Account Emails 8
Account Cron Jobs 16
Account Domains 32
Account Certificates 64
Account Database Users 128
Account FTP 256
Full Account 511
{contains: 511}
structure Integer The integer value for Backup Structure.
Incremental 1
Archived 2
Compressed 4
{structure: 2}
owner String The unique ID given to the owner.   5fc96deeac61ab0bc3020313
owner_name String The name assigned to the owner.   root
next_run String The date in UTC of the scheduled next run of the Backup Job.   2020-12-09T03:57:09+00:00
last_run String The date in UTC of the last scheduled run of the Backup Job.   2020-12-08T12:45:00+00:00
running Boolean Boolean value to determine if a backup job is currently running. null/1 1
disabled Boolean Boolean value to determine if a backup job is disabled. null/1  
exclude_list List [] List of the files/directories to exclude from backup job.    
encrypted Boolean Boolean value to determine if a backup job will encrypt the backups.    
schedules List [] List of Schedule Objects IDs.    
hooks List [] List of Hook Objects IDs.    
filters List [] List of Account Objects IDs.