Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to download a large(about 100 GB) backup file from Plesk?
Answer
-
Log into the server via SSH.
-
Execute the command below to list
.xml
files of all existing backups:# plesk sbin pmm-ras --get-dump-list | grep message | sed -E 's/<message>//g' | sed -E 's/\:\ <\/message>//'
backup_info_2006222137.xml
backup_info_2006222138.xml -
Using the required
.xml
backup file from the step №2, run the command below to download the backup:# plesk sbin pmm-ras --export-dump-as-file --dump-specification=backup_info_1908071521.xml --dump-file-specification=/root/backup.tar
Note:
/root/backup.tar
is the path where the downloaded backup will be located.
-
Log into the server via RDP.
- Execute the command below to list
.xml
files of all existing backups:C:\> "%plesk_bin64%"\pmm-ras.exe --get-dump-list | findstr "message"
<message>backup_info_1908071521.xml: </message>
<message>backup_info_1909120136.xml: </message> -
Using the required
.xml
backup file from the step №3, run the command below to download the backup:C:\> "%plesk_bin%\pmm-ras.exe" --export-dump-as-file --dump-specification=backup_info_1908071521.xml --dump-file-specification=C:\backup.zip
Note:
C:\backup.zip
is the path where the downloaded backup will be located.
Comments
14 comments
For the "%plesk_bin%\pmm-ras.exe" --get-dump-list | findst "message" there might be a misspelling or a different program on Windows 2016 findst should be findstr
@Steven Procopio,
The command has been updated.
Thanks for noticing!
Any issues when restoring this backup ?
1. Can we use ```plesk bin pleskrestore --restore backup.tar ``` ?
2. Backup-password ?
@Aleksandar Perisic check this article, it should be helpful https://support.plesk.com/hc/en-us/articles/115001547985-How-to-restore-a-Plesk-backup-from-CLI-
So, how to remove /root/backup.tar via SSH?
Hello @Usta,
This instruction described how to remove a file on Linux:
http://man7.org/linux/man-pages/man1/rm.1.html
good day guys..so If I want to import the backup.tar ..how can i import it to the plesk backup manager? I need your help for this..thank you so much...
Hello cristina
See the "Restoring a backup via a command-line interface" section in this article: https://support.plesk.com/hc/en-us/articles/213947385
Hello Ivan,
I need to restore only the mail accounts and its contents so I need to import it first to the backup manager.
When I exported it as a dump (.tar) here is my command:
plesk sbin pmm-ras --export-dump-as-file --dump-specification=backup_info_2003012102.xml --dump-file-specification=/home/backup032020.tar
To save space to the server, after I downloaded that backup032020.tar, I removed the backup in the plesk manager.
Now I need to restore the emails because the current server had a hardware failure. SO i need badly to retrieve the email. I do not have problem in the website, since I had a manual backup for the webfiles and database.
So how can i use the backup032020.tar now?
I tried to move the said .tar file in /var/lib/psa/dumps/ of my new server then tried this command:
plesk sbin pmm-ras --import-file-as-dump --dump-file-specification=/var/lib/psa/dumps/backup032020.tar
But in the end it will say this:
Import error: The dump does not nave XML configuration file
exit status 1
Please help me Ivan.
Thanks,
Cristina
I also tried this:
plesk bin pleskrestore --restore /var/lib/psa/dumps/backup032020.tar -only-mailnames -ignore-sign
but the result:
Unable to import file as dump: pmm-ras failed (Error code = 1):
STDOUT: Import error: The dump does not nave XML configuration file
STDERR:
exit status 1
Hi cristina,
Please open this backup032020.tar with an archiving program to see its content, to verify that it's correct. Seems that there's no XML file inside.
Note that the plesk bin pleskrestore won't work with the .tar file, only an XML, anyway it's better to restore it on the user interface.
With all the lates updates i cant't download a small file but not a big backup file from plesk.
Only small xml files . No error also whatsoever : backup_info_2007150010.xml (1).tar
2Kbs and empty...: inside :
.discovered/backup_info_2007150010/0000755000000000000000000000000013703426751015370 5ustar rootrootCannot read public key
Hello Valentijn Langendorff
I would suggest creating a support request to check the reason.
Hello,
When I run plesk sbin pmm-ras --export-dump-as-file --dump-specification=backup_info_1908071521.xml --dump-file-specification=/root/backup.tar
I receive:
Missing option dump-file-specification
exit status 1
What am I doing wrong?
Please sign in to leave a comment.