• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

pleskrestore and tar files

SacAutos

Regular Pleskian
Today I made a huge error. I wanted to delete a subscription for a customer and instead clicked on the remove button from the top of the screen. That wiped out the entire customer. (This really needs to be fixed as this isn't the first time I've done this. A double-confirmation step or a change in the button look would really be nice to eliminate confusion.)

Anyway, I was lucky in that a backup had just completed hours before. However, it was out to an external FTP site. So I brought the tar file back to the server and unpacked it. But I'm stuck from there. Whatever I do, I can't get the domains/subscriptions restored form the backups. This is making me nuts!! Anybody else have experience with this?
 
Last edited:
Here's where I'm at so far. (This is all CentOS 6, by the way.) I unpacked the tar file in /var/lib/psa/dumps/

I see that I've got a domains folder and eight directories beneath it - one for each of my domains.

I cd into domains/xxx.com . I execute this command:

/usr/local/psa/bin/pleskrestore --restore weekly_xxx.com_info_1403060141.xml -level domains

But nothing happens! No domain restored. What am I doing wrong??
 
migration.log file

The restore creates a file called migration.log . Here's what it looks like:

[2014-03-06 12:25:39.867|22929] INFO: backup_sign started : /usr/local/psa/admin/sbin/backup_sign verify /usr/local/psa/PMM/rsessions/2014030612253996/dump/info.xml
[2014-03-06 12:25:39.870|22929] INFO: backup_sign finished. Exit code: 0

The backup file is valid. I used the pleskrestore tool to confirm that. Help!!
 
Fortunately, I figured this one out on my own. What has to be done is this:

Gather the tar file parts together into a single container file
Move the tar file to /var/lib/psa/dumps/
Uncompress using tar xvf <archive>.tar
Restore using /usr/local/psa/bin/pleskrestore --restore <container>.xml
-level might be needed for a specific domain

I'm so relieved to get this back online. The documentation is rather thin on backup/restore, particularly with regard to tar files...
 
Back
Top