Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Backup and Restore domains manually through command line :Plesk  (Read 5585 times)

0 Members and 1 Guest are viewing this topic.

Eby Sebastian

  • Newbie
  • *
  • Posts: 14
  • Karma: +1/-0
Backup and Restore domains manually through command line :Plesk
« on: October 26, 2013, 09:23:29 pm »
To take a backup and restore your Plesk domains/ accounts through command line, this article will be helpful.

By default, Plesk backup is stored under the location  '/var/lib/psa/dumps'. This backup directory is specified in the configuration file '/etc/psa/psa.conf'.

==========
# Backups directory
DUMP_D /var/lib/psa/dumps
==========


To Back up whole Plesk server

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



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

==========
/usr/local/psa/bin/pleskbackup –domains-name example.com –v
==========



To Back up only mail configuration and content

==========
/usr/local/psa/bin/pleskbackup –domains-name example.com –only-mail -v
==========



To Back up only hosting configuration and content without emails

==========
/usr/local/psa/bin/pleskbackup –domains-name example.com –only-hosting –v
==========



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

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



To Back up multiple resellers on the server.

==========
/usr/local/psa/bin/pleskbackup –resellers-name [Resellername1 Resellername2 Resellername3...etc] –v
==========


If there are multiple Domains/ Resellers/ Clients, then it is difficult to specify them via command line. In that case, it is better to specify them in a file.

==========
/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)
==========

Hope this will help you...  ;)
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!