• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

How to read psadump files in Windows?

M

Mateo1041

Guest
Ok, here's the deal. I've found I can use the Plesk "psadump" utility to create backups of my data. I've successfully used both of the following so far:

Code:
/usr/local/psa/bin/psadump -F -f - --nostop --tar-ignore-failed-read | split -b 1000m - dump

/usr/local/psa/bin/psadump -F -z -f - --nostop | gzip | split -b 1000m - backup

While I'm not sure what the difference is between "dump" and "backup", I do know one uses gzip.

I've then used PSFTP (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) to securely download the dump/backup file to my local Windows hard-drive for off-site storage. However, so far I'm not able to open the file up and view what is inside. I've even tried Winzip which can open tar and gz files, but to no avail.

My goal with opening the "psadump" resulting file in Windows is so that I can verify the data is intact as a precaution. Am I doing something wrong? Can this file be opened in Windows and its contents examined? I do keep copies on the server as well, but feel I should have a weekly off-site copy just in case.

Any help would be greatly appreciated.

- Matt.
 
You can probably open them in wordpad as they're just text files with binary content pasted inline. The difference between 'dump' and 'backup' is just the filename psadump creates.

Which command are you using exactly? The second one you pasted is bad as the -z flag uses gzip anyway, so you can remove the "| gzip" bit from the middle.
 
Ok, I will try verifying it with Windows the next time I'm able to pull another one to my machine. I did remove the gzip and instead used the "-z" flag instead, thanks.

I'm assuming something like this would work great in the case of an emergency. Do you know how easy it would be to restore a file or domain from this dump? Or would I somehow have to restore the entire thing first? What command would I use?

I've read the following will work:

Code:
cat dump.* | gzip -d | /usr/local/psa/bin/psarestore -m map_file -s shells_map_file -f -
vi map_file
vi shells_map_file
cat dump.* | gzip -d | /usr/local/psa/bin/psarestore -m map_file -s shells_map_file -f -

And it was taken from here: http://forums.ev1servers.net/showthread.php?s=&threadid=19421&highlight=backup

I'm assuming you run the same restore command twice?

Thanks again.

- Matt.
 
Yeah, same command twice. First time it generates the ipmap and shellmap files for you, then you can edit the files and follow the instructions contained within them.

To restore an individual client (or a few clients, one per line in the file) use --clients-logins=/root/clientslist or a domain (or a few, one per line) use --domains-names=/root/domainslist

This is all covered in the manual.
 
Back
Top