Urgent - problem restoring tar.gz file
Original server has crashed. I now have a similar working server so I'm attempting to copy across the tar.gz back up files for each customer to restore each site.
I've used scp to copy the backup files across from the old server into the /home directory of the new server.
But. I'm getting the following error message when I try to run the restore:
" Failed to extract the archive at "/home/username.tar.gz": The tar archive extraction failed because of the error "The "/usr/bin/gtar --no-same-owner --use-compress-program=/usr/local/cpanel/bin/gzip-wrapper --preserve-permissions --extract --directory /home/cpanelpkgrestore.TMP.work.948e1bb7/unsafe_to_read_archive --file /home/username.tar.gz" command (process 27088) reported error number 2 when it ended.": pigz: skipping: : corrupted -- incomplete deflate data /usr/bin/gtar: Unexpected EOF in archive /usr/bin/gtar: Unexpected EOF in archive /usr/bin/gtar: Error is not recoverable: exiting now "
Looks like a permissions thing to me, can anyone help please?
-
Looks like a corrupted archive not permissions. I would recopy the archive over. 0 -
Hello, This doesn't look like a permissions error, this looks like the backup file is corrupted or incomplete based on: "Unexpected EOF in archive /usr/bin/gtar: Error is not recoverable: exiting now" You might try and extract it manually and see if you get the same behavior. 0 -
I have experienced the same error. I made a backup of an account and deleted it and now I cant restore the backup I've made. Is there an option to validate/verify cPanel backup files after backup is done to ensure they're restorable? 0 -
Hello, You can test if a tar.gz file is valid by running something like: gunzip -t file.tar.gz
and then further test if the tar file inside is valid by running:gunzip -c file.tar.gz | tar t > /dev/null0
Please sign in to leave a comment.
Comments
4 comments