Plesk Backup options using command line

1

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:

/var/lib/psa/dumps/
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 yourdomain.com –v

To Backup only mail configuration and content

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

To Backup only hosting configuration and content without emails

# /usr/local/psa/bin/pleskbackup –domains-name yourdomain.com –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.
Example:

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)

—————————————–>