Search our documentation...

Simply enter what you are looking for!

JETCLI :: Manually running a backup job from the command line

You can manually execute a backup job from the command line tool.
You will first need the backup job ID, to get it, list the backup jobs from the server cli.

To list the backup jobs, type the following command –

jetcli backup -P backupmanager::jobs

Example output –

ID  PID  Description          Creator  Type             Retention
-----------------------------------------------------------------
1   0    Backup-all-Accounts  root     incremental      3        
20  0    backup-config-files  root     dirincremental   2        
28  0    DNZ-Zones-Backups    root     accountsdnszone  7        
29  0    FreeBSD              root     incremental      3        

Choose the job you want to execute (in the example we choose job ID 1), and type the following command –

jetcli backup -vfR jobs -I 1

Explanation about the flags we used –

 -v, --verbose                          increase verbosity
 -f, --force                            no action prompt and force commands
 -R, --run                     The command you want to execute.
 -I, --id                           The item ID to perform the action you provided if needed.

Example output –

[13/Nov/2015 22:57:47 +0200] JBM Version 3.0.58
[13/Nov/2015 22:57:47 +0200] Starting job "Backup all Accounts" (#1)
[13/Nov/2015 22:57:47 +0200] Server process id "163542"
[13/Nov/2015 22:57:47 +0200] Connecting destination...DONE
[13/Nov/2015 22:57:47 +0200] Creating Accounts Incremental Backup...
[13/Nov/2015 22:57:48 +0200] Backup suspended accounts...DISABLED
[13/Nov/2015 22:57:48 +0200] Preparing Progressbar Data...DONE
[13/Nov/2015 22:57:48 +0200] Account "forcerestore"

[... data removed ...]

[13/Nov/2015 22:57:49 +0200] Account "freedoma"
[13/Nov/2015 22:57:49 +0200] 
[13/Nov/2015 22:57:49 +0200]    Account 2 of 13
[13/Nov/2015 22:57:49 +0200]    Server Load: 0.01
[13/Nov/2015 22:57:49 +0200]    Checking account suspension...NOT SUSPENDED
[13/Nov/2015 22:57:49 +0200]    Grabbing account information...DONE
[13/Nov/2015 22:57:57 +0200]    Zipping all databases dump...DONE
[13/Nov/2015 22:57:59 +0200]    Transfering backup to destination...SUCCESS
[13/Nov/2015 22:58:03 +0200]    Deleting old backup snaps...DONE - 0 snaps deleted
[13/Nov/2015 22:58:04 +0200]    Keeping account information on local location for best backup performance
[13/Nov/2015 22:58:04 +0200]    99% is done from the total progress

[ ... data removed ... ]

[13/Nov/2015 22:58:14 +0200]    100% is done from the total progress
[13/Nov/2015 22:58:15 +0200] Clear Cache post Backup is enabled, Clearing Cache...DONE
[13/Nov/2015 22:58:35 +0200] Job Completed.