Exporting Backup Files
pleskbackup stores backups in Plesk's backup storage located on the server in
Plesk is capable of exporting the created backup as a single
.zip file in one of the following ways:
- to a local file system
- to an FTP server
To export the backup as a single file, use the
--output-file option. Each particular export mode requires specific option values.
Important: After a backup is exported,
pleskbackup removes it from the Plesk's backup storage.
The exported file can also be created uncompressed and/or split into parts of a particular size, just like the files forming the backup in the storage (details).
Exporting to stdout
To export a backup as a file to
stdout, use the
--output-file option with the
For example, to create a backup of a subscription with ID 1 and export it to stdout:
pleskbackup domains-id 1 --output-file stdout
Exporting to a local file system
To export a backup as a file to a local file system, use the
--output-file option with a
For example, to create a backup of a subscription with ID 1 and export it to the file domain1.tgz located at
pleskbackup domains-id 1 --output-file=/usr/local/irregular-backups/domain1.tgz
Exporting to FTP server
To export a backup as a file to an FTP server, use either of the following options:
You may want to use a passive mode FTP connection if a firewall prevents the export. For this, use the
For example, to create backup of a subscription with ID 1 and export it to an FTP server example.com to the storage/backups/ directory, using johndoe as login and jjFh6gsm as password:
pleskbackup domains-id 1 --output-file=ftp://johndoe:jjFh6gsm@example.com/storage/backups
pleskbackup domains-id 1 --output-file=ftp://example.com/storage/backups --ftp-login=johndoe --ftp-password=jjFh6gsm
Leave your comments on this page
Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.