Error unpacking when moving user to new server

jorisx

Verified User
Joined
Nov 29, 2011
Messages
9
I was bussy migrating a user to a new server when i ran into the following problem...

I backup the users directly to the new server via ftp
so I don't need the dl/up which can take days from my current location

Unable to extract the directory 'backup' from the file /home/tmp/admin/userx.tar.gz as user userx

gzip: stdin: invalid compressed data--format violated
/bin/tar: Unexpected EOF in archive
/bin/tar: Unexpected EOF in archive
/bin/tar: Error is not recoverable: exiting now

File '/home/tmp/admin/userx.tar.gz' was 260380531 bytes in size, as read by root.
Unable to read the backed up user.usage file: Unable to open /home/userx/backups/backup/user.usage for reading.​


but the backup message seemed to have run fine:

Your backups are now ready 07/06/2014
User userx has been backed up. <9:22:05>

The User backups have been uploaded to ftp://xx.xx.xx.xx/backups/ <9:23:00>​

(i think I've an other backup laying around, so i'm going to try to restore with that right now... just an hr of 2 difference with the latest, so it should be fine for this account)

But has anyone else had this problem?
Any ways to fix this?
 
Last edited:
Try this

Code:
chmod 755 /home/admin/
chmod 755 /home/admin/user_backups/
chmod 644 /home/admin/user_backups/*
chmod 1777 /home/tmp/


and run restore once more.
 
Thanks for the fast reply!
I was restoring a user backup via the reseller ... and all the backups i had made via there(reseller) had this same error...
Luckily I had an user.admin backup of this user and that one just worked. pfwww!! (sweat)

Next time I won't delete the old account ... and just rename the user and domains, before the restore went ok !!

hmm, just downloaded the reseller backup of that user and that indeed has an 'end of file error' something with 'operation not permitted' when i try to extract it locally... So I will definitelyd/l and test the backup before restoring next time :)


ps. What is the best practices in these to follow, when i don't want to switch of the multi server option?
 
Last edited:
We had almost the same error a week or so ago when moving from admin reseller backups.

Problem was resolved by making sure both servers had the same version of DirectAdmin.

I'm not sure but I believe the problem is caused by tightening permissions on running backup/restore.

Jeff
 
Back
Top