Command Line Tools

JetBackup 5 pkgacct

The JetBackup 5 pkgacct CLI command will allow you to backup an account locally in a .tar.gz file located in the Workspace Directory.
To run pkgacct, run the following command as root user:
/usr/bin/jetbackup5 --pkgacct [options] {ACCOUNT}

Options

The pkgacct command accepts the following options:

Option Description Arguments Example
{ACCOUNT} REQUIRED: The username of the account you wish to backup.   /usr/bin/jetbackup5 --pkgacct user1:
-oSkip Give the backup parts of the account that you do NOT want to include in the backup.
  • config - Panel Configuration
  • homedir - Home Directory Files
  • db - Database
  • dbuser - Database Users
  • email - Email Accouns and Structure
  • ftp - FTP Accounts
  • cron - Cron Jobs
  • dns - DNS Zones
  • ssl - SSL Certificates
-oSkip config,homedir

JetBackup 5 restorepkg

The JetBackup 5 restorepkg CLI Command will restore an account using a JetBackup 5 Compressed Backup.
To run pkgacct, run the following command as root user:
/usr/bin/jetbackup5 --restorepkg [options] {PACKAGE_PATH}

Options

The restorepkg command accepts the following options:
Option Description Arguments Example
{PACKAGE_PATH} REQUIRED: The absolute path to the .tar.gz backup of the account you wish to restore.   /usr/bin/jetbackup5 --restorepkg /PATH/TO/TAR/jetbackup-acct.tar.gz
-oOwner Set the new owner manually, Default Owner. {USERNAME} -oOwner root
-oPackage Set the new package manually, Default Package. {PACKAGE_NAME} -oPackage example_pkg
-oMerge Merge backup data with live account data, Default No Yes/No -oMerge Yes
-oTerminate Terminate account before restore Default No (only if account exists) Yes/No -oTerminate No
-oReseller Set the account as reseller, Default No (only if account is orphan or -oTerminate provided) Yes/No -oReseller Yes
-oSuspend Set the account as susepended after the restore, Default No. Yes/No -oSuspend Yes
-oIP Set the new IP Address manually, Default IP. {IP_ADDR} -oIP 1.111.11.1