1and1 Help Centre Categories

print article

Backup Plesk Completely

The following procedure makes a complete backup of Plesk. The backup includes the domain and account structures, domain names, e-mail accounts. The backup DOES NOT include the contents such as websites and e-mail contents.

Step 1
You would need to log into the server through SSH. The login details can be found in the "Server Administration" section of the admin.1and1.co.uk control panel.
Step 2
Change into a directory were you would like the backup of Plesk to be saved. In this example we have made a directory
called backup and changed into this directory

# mkdir /home/backup
Step 3
Type the following the command to start the Plesk backup procedure. This would make a complete backup (-F), to the directory location /home/backup (-f)

# /usr/local/psa/bin_uk/psadump -F -f /backup/

You will see the messages from the server while the backup is in progress. Finally you will see the message

"Server backup is successfully completed"
Step 4
After the backup is complete you can check the archive file which looks similar to;

-rw------- 1 root root 7568786 Oct 11 12:14 psa-7.1.4-p15160828.pureserver.info-20041011.12.archive

You may now save this file to another server via FTP if you wish.

NOTE: A ftp backup of Plesk can also be done using the following format <login>:<password>@<server>/<dumpfile_path> - storing the backup file on remote ftp server.
Step 5
To restore the backup you would need to change back into the /backup directory and run the following command

/usr/local/psa/bin_uk/psarestore -f psa-7.1.4-p15160828.pureserver.info-20041011.12.archive -m map_ip -s shell_map

NOTE:

The restore backup might fail on the 1st run. The reason for this is Plesk looks for the map_ip and shell_map files
which may not be located, so on the first run it creates the files. If you run the restore command again the
procedure would now start to restore Plesk on the system. If you do not get the following message then run the command
again for the third time;

"Server restoration is completed"
You can also consult the psadump and psarestore logs located at /var/log/ on the server.

Additional options that can be used while making the backup

Options:
  • -h - This help.
  • -F - Make (f)ull dump(it is default option, -C option is not supported now).
  • -z - Enable gzip compression for result dump file.
  • -f <dumpfile>
  • /fullpath/filename - regular file,
  • /fullpath/ - dir for dumpfile with default name,
  • - - use stdout for output,
  • <login>:<password>@<server>/<dumpfile_path> - storing the backup file on remote ftp server.
  • --clients-ids - file with clients ids list which must be dumped;
  • --clients-logins - file with clients logins list which must be dumped;
  • --domains-ids - file with domains ids list which must be dumped;
  • --domains-names - file with domains names list which must be dumped;
  • --force - if dumpfile already exists, it will be overwritten without prompting
  • --version - show version of Backup/Restore utilities
  • --nostop - don't stop services during dump procedure (each domain will be turned off/on)
  • --nostop-domain - don't stop each domain if --nostop is used
  • --noblock - do not block domain or server during backup
  • --do-not-dump-logs - do not dump virtual host log files
  • --no-internal-zip - don't compress with gzip part of dump file (for example: this option disables compression forvhosts dirs, mail names);
  • --tar-ignore-failed-read - don't exit with non-zero status on unreadable files