Previous Topic

Next Topic

Book Contents

Backing Up Plesk Data Through Command Line Interface

To back up all Plesk data, except interface skins, using CLI, run the following command in the %plesk_dir%\admin\bin\ folder (where %plesk_dir% is the system variable defining the folder where Plesk is installed):

backup.exe -f <path\filename>

Note: Specify the path and the name of the file instead of <path\filename> variable. If the path is not specified, backup file will be saved in the PLESK_DATA_DIR\Backup folder (where PLESK_DATA_DIR is the folder you selected during the installation of Plesk for the location of Plesk data)

E.g., to back up all Plesk data, except interface skins, into the C:\backup\psa folder with backup file named my_psabackup.bu, run the following command in the %plesk_dir%\admin\bin\ folder (where %plesk_dir% is the system variable defining the folder where Plesk is installed):

backup.exe -f c:\backup\psa\my_psabackup.bu

In order to use custom backup configuration for backing up Plesk data with backup.exe utility via CLI, you need to create a configuration file with required backup settings.

To create a configuration file for Plesk Backup utility:

  1. Start Plesk Backup utility (Start > All Programs > SWsoft > Plesk > Plesk Backup)
  2. Select the objects you want to back up.
  3. Choose the appropriate backup options.
  4. Select the destination for the backup file.
  5. Enter a description for the backup file in the Description field.
  6. Select a temporary folder for backup purposes, if the hard disk partition where Plesk is installed doesn't have enough free space. Under File menu, click Set Temporary folder... and specify the required folder. Click OK.
  7. Save the backup configuration. Under File menu, click Save config, specify the filename and configuration file location, and click OK to confirm your choice. To load an existing backup configuration, click Load confing, find the required file and click OK.

To back up Plesk data via CLI, using custom backup configuration file:

Run the following command in the %plesk_dir%\admin\bin\ folder (where %plesk_dir% is the system variable defining the folder where Plesk is installed):

backup.exe -f <path\filename> --config-file <path\filename>

Note: Specify the path and the name of the files instead of <path\filename> variable. If the path to the backup file is not specified, backup file will be saved in the PLESK_DATA_DIR\Backup folder (where PLESK_DATA_DIR is the folder you selected during the installation of Plesk for the location of Plesk data)

E.g., to back up Plesk data using backup configuration file named basic_bu.psc located in the c:\My Documents\Plesk into the C:\backup\psa folder with backup file named my_psabackup.bu, run the following command:

backup.exe -f c:\backup\psa\my_psabackup.bu --config-file "c:\My Documents\Plesk\mypsabackup.bu"