• 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

How to extract multivolume backup created by Plesk

MislavO

Regular Pleskian
In Plesk Backup Setting, multi-volume backup is marked. I've need to extract multivolume backups manually...

For example, big sites have something like this:
-rw-r----- 1 root root 2.0G Jul 29 06:24 <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz
-rw-r----- 1 root root 2.0G Jul 29 06:34 <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz1
-rw-r----- 1 root root 2.0G Jul 29 06:49 <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz2
-rw-r----- 1 root root 234M Jul 29 06:54 <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz3

Now, for example, if I only try to extract the main file:
<HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz

Files get extract:
drwxr-x--- 5 <USER> psaserv 4.0K Mar 15 2012 anon_ftp
-rw-r----- 1 root root 2.0G Jul 29 06:24 <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz
drwxr-x--- 3 nkvz psacln 4.0K Mar 15 2012 cgi-bin
drwxr-xr-x 3 root psaserv 4.0K Apr 5 2012 error_docs
drwxr-xr-x 21 <USER> psaserv 4.0K Jul 26 18:19 httpdocs

but in the end, output message is this:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

So I'm not really sure if everything got extracted. With command "tar -tvf" I can also view the content of that main backup file, however I can't do that on other parts. Also, I've tried to rename files files tgz1-3 to just tgz, because I was thinking it might be the problem because it's not really tar gz file, just number on the end of file name.

I've tried to extract multivolume backup as suggested here:
http://www.thewebhelp.com/linux/creating-multivolume-tar-files/

# tar -xMf <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz
tar: This does not look like a tar archive
tar: Skipping to next header
Prepare volume #2 for `<HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz' and hit return: n <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz1
tar: Archive contains `AP\316\276\205\300}\f\217\244L\202' where numeric off_t value expected
tar: Archive contains `\265\222&\211v\376\033\023' where numeric mode_t value expected
tar: Archive contains `J,\267\232\301\252S\332,W\353b' where numeric time_t value expected
tar: Archive contains `\352\377\261\217\031\rgM' where numeric uid_t value expected
tar: Archive contains `\024v\204(\241\305\\\027' where numeric gid_t value expected
tar: Skipping to next header
Prepare volume #3 for `<HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz1' and hit return: n <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz2
tar: Exiting with failure status due to previous errors

It fails of course:
# file <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz
<HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz: gzip compressed data, from Unix

And http://ftp.gnu.org/old-gnu/Manuals/tar-1.12/html_node/tar_120.html
The --gzip (--gunzip, --ungzip, -z) option does not work with the --multi-volume (-M) option, or with the --update (-u), --append (-r), --concatenate (--catenate, -A), or --delete operations.

And I didn't find anything regarding gzip extraction of multi-volume backups.

I've also founded & tried this:
http://forums.spry.com/plesk/112-extracting-files-plesk-backup.html

But no success, since it's multi-volume. In the end, I've also found this:
http://kb.parallels.com/en/1757

I can see that .xml files are containing all tar gz files included in multivolume backup, however I have no idea what parameters should I use to restore backup after all.

KB article: III. THRID WAY:
- will this work with multivolume backup and extract all files?

Any help is more then welcome. Thanks
 
Hello!
Sory for late reply.
It seems that you use FTP repository for backup files placing. If so you can try to download main backup archive <HOSTNAME>_full-_<DOMAIN.TLD>_vhost_1307282008.tgz on your local computer via plesk UI interface. During downloading it collected into original archive. The second way is copy or upload into server local backup repository.

but in the end, output message is this:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
So I'm not really sure if everything got extracted.

Everything is extracted. This error only indicates that backup file you try to extract has signature (http://download1.parallels.com/Ples...lels-plesk-panel-11.1-for-linux-based-os.html, point 64).
 
Back
Top