Plesk has a set of command line tools which we can use to create a backup manually.
The tool is called pleskbackup and it lives in the Plesk utilities directory. On CentOS this is in /usr/local/psa/bin.
If called without parameters you’ll see a long list of options you can pass to this command:
Usage: pleskbackup <command></command> [] Commands: server Backs up whole Plesk. resellers-name Backs up selected resellers. Reseller's logins are read from command line, space-separated. If no resellers provided, backs up all resellers on the host. resellers-id Backs up selected resellers. Reseller's identificators are read from command line, space-separated. If no resellers provided, backs up all resellers on the host. clients-name Backs up selected clients. Client's logins are read from command line, space-separated. If no clients provided, backs up all clients on the host. clients-id Backs up selected clients. Client's identificators are read from command line, space-separated. If no clients provided, backs up all clients on the host. domains-name Backs up selected domains. Domain's names are read from command line, space-separated. If no domains provided, backs up all domains on the host. domains-id Backs up selected domains. Domain's identificators are read from command line, space-separated. If no domains provided, backs up all domains on the host. Use Exclude options to exclude some resellers/clients/domains. help Shows this help page ... Output file option: --output-file= /fullpath/filename - regular file, - - use stdout for output, [ftp|ftps]://[[:]@]/fullpath/filename - storing the backup to ftp server. FTP_PASSWORD environment variable can be used for setting password. FTP option '--ftp-login' can be used for setting login. FTP option '--ftp-password' (with '--ftp-login') can be used for setting password. If your password contains slash, you have to use '--ftp-password' option or FTP_PASSWORD environment variable. 'ftps' protocol can be specified to use FTP over SSL, instead of plain FTP. With ftps specify 990 port to use implicit FTPS, otherwise explicit mode will be used. Used to import dump from repository into the single file.
To create a local server-wide backup, all we have to do is this:
pleskbackup server
To create a single domain backup, simply replace “server” with “domains-name yourdomain.com” like this:
pleskbackup domains-name your yourdomain.com
Add more domains on the same line, separated by spaces.