Plesk Backup options using command line

Plesk Backup options using command line.

To keep the copy of backups of each Domain, Clients, Resellers, Mails, Database and configuration settings are very essential.

Before, we get start lets understand the basic Backup logical structure in Plesk. All backup created by Plesk by default stored under Plesk backup repository located on Plesk server:

For Plesk Linux/Unix, repository location:

specified by the DUMP_D variable defined in the /etc/psa/psa.conf configuration file.
For example:
grep DUMP_D /etc/psa/psa.conf
# Backups directory
DUMP_D /var/lib/psa/dumps

For Plesk Windows, repository is located in the %plesk_dir%\Backup\ folder, where %plesk_dir% is environment variable specifying directory where Plesk is installed (if installed to default locations, it is “C:\ProgramFiles\Parallels\Plesk\”).

To Backup whole Plesk server

# /usr/local/psa/bin/pleskbackup –server -v
-v option show information about backup process

To Backup Single domain in Plesk with mails, hosting files, configuration and Database

#/usr/local/psa/bin/pleskbackup –domains-name –v

To Backup only mail configuration and content

# /usr/local/psa/bin/pleskbackup –domains-name –only-mail -v

To Backup only hosting configuration and content without emails

# /usr/local/psa/bin/pleskbackup –domains-name –only-hosting –v

To Backup selected resellers . If no resellers provided, back up all resellers on the server.

# /usr/local/psa/bin/pleskbackup –resellers-name [Reseller logins name] –v

For example:
# /usr/local/psa/bin/pleskbackup –resellers-name Jade –v (back up all data for reseller Jade).
# /usr/local/psa/bin/pleskbackup –resellers-name Jade Robert David –v (back up all data for Jade Robert,David)

You can also use single file to read list of domains/clients/resellers from file, not from command line. File should contain list of domains/clients/resellers one per line.

To Backup selective resellers, clients and domains in Plesk

# /usr/local/psa/bin/pleskbackup –resellers-name –f resellersclient.txt –v (resellerclietns.txt is a file which contain list for resellers names per line )

# /usr/local/psa/bin/pleskbackup –clients-name –f clients.txt –v (clients.txt file which contains list for clients name per line )

# /usr/local/psa/bin/pleskbackup –domains-name –f domainsname.txt –v (domainnames.txt file which contain list of domains name per line)



One thought on “Plesk Backup options using command line

  1. Hi, thank for the info.

    Could you add how to restore too?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s