backup-storage: Managing Remote Backup Storage
The backup-storage utility is used for managing remote FTP storages that contain Plesk server backups.
Usage
backup-storage <command> [<arguments>] [<options>]
Example
The following command disables the remote FTP storage of the reseller John Doe:
plesk bin backup-storage --disable ftp -reseller jdoe
Commands
Command |
Argument |
Description |
Example |
|---|---|---|---|
|
|
Enables the specified backup storage. |
To enable the remote storage on Google Drive: plesk bin backup-storage --enable google-drive-backup |
|
|
Disables the specified backup storage. |
To disable the FTP remote storage: plesk bin backup-storage --disable ftp |
|
|
Configures the specified FTP storage. |
To set the credentials and the IP address of the FTP storage: SET FTP_PASSWORD=<****> plesk bin backup-storage --configure ftp -server -ftp-login <ftp_user> -ftp-password -ftp-server <FTP_server_IP_address> |
|
|
Shows the list of backups on the specified remote storage. |
To see the list of backups stored remotely on Google Drive: plesk bin backup-storage --list-backups google-drive-backup |
|
Enables password protection for backups on remote storage. To set the password, use the ‘PLESK_BACKUP_PASSWORD’ environment variable. |
To enable password protection for the server-level backups on remote storage: SET PLESK_BACKUP_PASSWORD=<****> plesk bin backup-storage --enable-password-protection -server |
|
|
Disables password protection for backups on remote storage. |
To disable password protection for backups of the reseller John Doe on remote storage: plesk bin backup-storage --disable-password-protection -reseller jdoe |
|
|
|
Displays the help reference for the utility. |
To see the utility help: plesk bin backup-storage --help |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
Specifies the server-level backup storage. This is the default option. Used only with the |
To enable remote FTP storage for the server-level backups: plesk bin backup-storage --enable ftp -server |
|
|
|
Specifies the reseller whose backups on remote storages will be affected by the command. Used only with the |
To enable remote FTP storage for the reseller John Doe: plesk bin backup-storage --enable ftp -reseller jdoe |
|
|
Specifies the customer whose backups on remote storages will be affected by the command. Used only with the |
To disable remote Google Drive storage of the customer John Doe: plesk bin backup-storage --disable google-drive-backups -customer jdoe |
|
|
Specifies the domain's subscription whose backups on remote storages will be affected by the command. Used only with the |
To enable remote FTP storage for the domain “example.com”: plesk bin backup-storage --enable ftp -subscription example.com |
|
|
Specifies the FTP server login. Used only with the |
To set “jdoe” as the login for the remote FTP server: plesk bin backup-storage --configure ftp -ftp-login jdoe |
|
Specifies that the FTP password is set using the ‘FTP_PASSWORD’ environment variable. Used only with the |
To use the FTP password set using the ‘FTP_PASSWORD’ environment variable: plesk bin backup-storage --configure ftp -server <FTP_server_IP_address> -ftp-password |
|
|
|
Specifies the FTP server hostname or IP address. Used only with the |
To set “example.com” as the FTP server hostname: plesk bin backup-storage --configure ftp -ftp-server example.com |
|
|
Specifies the path to the directory for storing backups on the FTP server. Used only with the |
To store backups in the plesk bin backup-storage --configure ftp -ftp_path backups |
|
|
Enables/disables the use of passive FTP mode. Used only with the |
To make the Plesk server use passive FTP mode when uploading files to remote storage: plesk bin backup-storage --configure ftp -ftp-passive-mode true |
|
|
Enables/disables the use of the FTPS protocol. Used only with the |
To make the Plesk server use the FTPS protocol when uploading files to remote storage: plesk bin backup-storage --configure ftp -use-ftps true |
|
Displays the output in the JSON format (if true) or in plain text format (if false). Used only with the |
To display the list of remote backups in the JSON format: plesk bin backup-storage --list-backups ftp -json |