Web Hosting Talk


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : username.tar.gz are not a cpmove file?
Reply

Dedicated Server Current and past experiences with dedicated server providers, bandwidth, and server performance. Review managed and unmanaged dedicated web servers, discuss both Windows and Unix dedicated server solutions, and discuss dedicated hosting providers. If your service is unavailable, please click here.

 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2008, 06:52 AM
pueblosnet pueblosnet is offline
View Beta Profile
Aspiring Evangelist
 
Join Date: Apr 2004
Posts: 427
username.tar.gz are not a cpmove file?

I'm moving some accounts from another provider wich don't allow users to make his owns backups, so I'm doing manually from the cpanel. The file I get it's something like username-date.tar.gz

The problem it's when I try to restore it in my server, I get "not user files found" because the .tar.gz file it's like

.
and inside the folders

And it looks like to have the restore working have to be:

/username
/and inside the folders

So, the solution I have for the moment it's to 1) create the account in the new server 2) restore it login in the cpanel

BUT this it's a pain, any solution for that?

Thanks!

Reply With Quote
Sponsored Links
  #2  
Old 09-17-2008, 04:14 PM
Outlaw Web Master Outlaw Web Master is offline
View Beta Profile
Devil's Advocate
 
Join Date: Jul 2005
Location: Edinburgh
Posts: 3,854
hmm....try renaming them to...

cpmove-username.tar.gz

Copy this over to your new server via either scp or FTP and place it into the /home/ directory

Run

/scripts/restorepkg username

This will unpack and install the user and will list it in WHM


might help..

owm

__________________
‹(¿)›
Life's what you make it.

Reply With Quote
  #3  
Old 09-17-2008, 05:21 PM
Jdubz31 Jdubz31 is offline
View Beta Profile
Web Hosting Evangelist
 
Join Date: Jun 2006
Location: Chicago
Posts: 461
You shouldn't have to rename the file, however, you do need to make sure the file is in the /home directory, or one of the other directories that the /scripts/restorepkg utility recognizes. If for some reason you don't want to put the file in /home/, look at the header comments of /scripts/restorepkg for alternate locations.

__________________



Reply With Quote
Sponsored Links
  #4  
Old 09-17-2008, 10:16 PM
ub3r ub3r is offline
View Beta Profile
Disabled
 
Join Date: Dec 2002
Location: chica go go
Posts: 11,858
they probably just made a tar archive of the user's home directory and didn't use the pkgacct script to package it. In this case, you can't really do anything except move the backup to /home and run

tar -xzf filename.tar.gz

and then chown everything to their proper user account. But before you do that, you need to create their account in your whm.

Reply With Quote
  #5  
Old 09-18-2008, 03:37 AM
servertechs servertechs is offline
View Beta Profile
Web Hosting Guru
 
Join Date: Jan 2008
Location: India
Posts: 270
try

/scripts/restorepkg username --force

__________________
HIRE TECHS ON A MONTHLY BASIS
○●○ 24/7 Support for webhosting ○●○ Windows | linux | Virtuozzo | Open VZ
http://www.servertechs.net/
sales@servertechs.net | AIM servertechs

Reply With Quote
  #6  
Old 04-26-2009, 03:07 PM
HennySavenije HennySavenije is offline
View Beta Profile
New Member
 
Join Date: Sep 2004
Posts: 4
username.tar.gz are not a cpmove file?

I needed a new server and I had a lot of accounts which didn’t transfer to the new server with the standard method and cPanel kept on telling me that the password wasn’t correct while trying again. All the solutions I found on the web didn’t work.

I had copied the list of accounts which didn’t migrate and in a text editor which could also find and replace hard returns, I first replaced all the …. failed with an empty string, then I added /scripts/restorepkg before every account name by doing a search and replace <hard return> with <hard return>/scripts/restorepkg and did the same in another file with /scripts/pkgacct. In that way the /scrips/... was in front of every account name.

On the old server I executed in the directory /scripts the command ./cpbackup –force
and accordingly tail -f /usr/local/cpanel/logs/cpbackup/1240680453.log (replace the logfile with the one cpbackup shows)to see once it was finished.

Then I pasted the second list where "/scripts/pkgacct username" was, on the old server and went out to fetch a beer. After a long time and several beers when all the accounts were finished I did the following:

tar zcvf - /home/cpmove* | ssh root@ip_of_your_new_server “cat > /complete.tar.gz”
(all on one line)
It will ask for the password of the new server and after entering that you can get another beer.

Once finished you can go to the root on the new server and execute the following command
tar -zxvf complete.tar.gz
Once that is finished you can copy and paste the list with "/scripts/restorepkg accountname" into the ssh window of the new server and you’re done.

Open two windows of WHM (old and new server) and click on both “Show Reseller Accounts”. You can compare them pretty quick to see if they match. (reseller so and so has so many accounts) if they match, you’re good. The ones missing you can easily delete all the cpmove files on the old server and create one for every one still missing. (in my case only 2 out of 300) and repeat the steps described above.

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement: