Exporting Backup Files
By default, pleskbackup
stores backups in Plesk’s backup storage
located on the server in %plesk_dir%Backup\
.
Plesk is capable of exporting the created backup as a single .zip
file in one of the following ways:
- to
stdout
- to local file system
- to FTP server
To export backup as a single file, use the --output-file
option.
Particular export mode requires specific option values.
Note: After a backup is exported, pleskbackup
removes it from the
Plesk’s backup storage.
The exported file can also be created not compressed and/or split in parts of a particular size, just as the files composing backup in storage (details).
Exporting to stdout
To export a backup as file to stdout
, use the --output-file
option with the stdout
value.
For example, to create backup of a subscription with ID 1 and export it to stdout:
pleskbackup --domains-id 1 --output-file stdout
Exporting to local file system
To export a backup as a file to local file system, use the
--output-file
option with a <full-path-to-file>\<file-name>
value.
For example, to create backup of a subscription with ID 1 and export
it to the file domain1.zip located at c:\tmp
folder:
pleskbackup --domains-id 1 --output-file="c:\tmp\domain1.zip"
Exporting to FTP server
To export a backup as a file to an FTP server, use either of the following options:
-
--output-file
=ftp://
<login>
:
<password>
@
<server>/<filepath>
-
--output-file=ftp://
<server>
/
<filepath>
--ftp-login=
<ftp login>
--ftp-password=
<ftp password>
You may want to use passive mode FTP connection in case a firewall
prevents the export. For this, use the --ftp-passive-mode
option.
For example, to create backup of a subscription with ID 1 and export it to 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
or
pleskbackup --domains-id 1 --output-file=ftp://example.com/storage/backups --ftp-login=johndoe --ftp-password=jjFh6gsm