Question
How to restore a Plesk backup from a command-line interface?
Answer
It is possible to use pleskrestore
CLI utility to restore Plesk backup files for both Linux and Windows servers.
The same utility can be used to restore different backup levels: customers, resellers, domains, and server-wide backups.
Find some examples below:
-
To restore Plesk server from a server-wide backup run:
-
for Linux-based OSes:
# plesk bin pleskrestore --restore "Backup-file" -level server
-
for Windows-based OSes:
C:> plesk bin pleskrestore.exe --restore "Backup-file" -level server
Note: By default, all backup data is stored in the directory
/var/lib/psa/dumps
in Plesk for Linux and%plesk_dir%Backup
in Plesk for Windows
To restore a subscription from a zipped backup file:
-
for Linux-based OSes:
# plesk bin pleskrestore --restore "/root/example.com.zip" -ignore-sign -verbose -level domains
-
for Windows-based OSes:
C:> plesk bin pleskrestore.exe --restore "C:example.com.zip" -ignore-sign -verbose -level domains
-
For other advanced usage options, refer to Official Plesk CLI documentation for Linux and for Windows.