Last modified February 20, 2025

BackupJobs


manageBackupJob

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

getBackupJob

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

listBackupJob

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 N/A _id: 5fcb1df43606876d134aab82
name String Backup Job name used internally for your convenience. N/A name: Full Account Backups
destination List [] List of Destination IDs assigned for this backup job. N/A
destination_name List [] Names of the destinations assigned to this backup job. N/A destination_name: Amazon 3
type Integer The integer value for the Backup Type
Accounts 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
Server Backup 7
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
options Integer Include or Exclude databases/Emails contents
Incude Databases 0
Exclude Emails Contents 1
Include Emails Contents 2
Exclude Databases and Email Junk 4
Include Junk 6
options: 4
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. N/A owner: 5fc96deeac61ab0bc3020313
owner_name String The name assigned to the owner. N/A owner_name: root
next_run String The date in UTC of the scheduled next run of the Backup Job. N/A next_run: 2020-12-09T03:57:09+00:00
last_run String The date in UTC of the last scheduled run of the Backup Job. N/A last_run: 2020-12-08T12:45:00+00:00
running Boolean Boolean value to determine if a backup job is currently running. null/1 running: 1
disabled Boolean Boolean value to determine if a backup job is disabled. null/1 disabled: 1
include_list List [] List of File/Directory Paths to Include for Directories Backup Types. N/A include_list: 0: /home/docsjetbackup
exclude_list List [] List of File/Directory Paths to Exclude from backup job. N/A exclude_list: 0: /usr/local/tmp
encrypted Boolean Boolean value to determine if a backup job will encrypt the backups. null/1 encrypted: 1
schedules List [] List of Schedule Objects assigned to the Backup Job. N/A schedules: 0: _id: 67883ac75a6ef862b902e2a3 name: JetBackup Config Daily type: 2 next_run: 2025-02-14T08:00:00+00:00 retain: 7
hooks List [] List of Hook Objects IDs assigned to the Backup Job. N/A hooks: 0: _id: 67a694bb96dc4ac9bd0dcd52 name: Pre hook
filters List [] List of Account Filter Object Group IDs assigned to the Backup Job. N/A filters: 0: 0: 670fe55dc367a30323073583
monitor List [] List of the Job Monitor values in days.
  • ranfor
  • notran
monitor: ranfor: 2 notran: 2