Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    30

    Default username.tar.gz are not a cpmove file?

    I'm moving some accounts from another provider wich don't allow users to make his 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!

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Are you attempting to use the Restore an Acccount feature by using a .tar.gz file you created via File Manager?

  3. #3
    Member
    Join Date
    Dec 2003
    Posts
    30

    Default

    sure! only works if I restore it login in the cpanel user

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by pueblosnet View Post
    sure! only works if I restore it login in the cpanel user
    Unfortunately, a file you create from file manager would not contain all the data from your account that would be contained in a cpmove file. I recommend simply extracting your files to restore the file content of your account.

    As for SQL databases, mail accounts etc - as creating a file via File Manager does not back them up (that's what "generate a full backup" is for), those would need to be restored or re-created through other means.

  5. #5
    Member
    Join Date
    Dec 2003
    Posts
    30

    Default

    Mail accounts are restored if I enter in the cpanel of the user and restore manually, so this backup works for this, what I hope to find it's something more automatical.

  6. #6
    Registered User
    Join Date
    Apr 2009
    Posts
    1

    Default Solution for migration

    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.

  7. #7
    Member AnilR's Avatar
    Join Date
    Nov 2007
    Location
    India
    Posts
    28

    Thumbs up

    hennysavenije,

    Really innovative ..good solution
    Regards,
    Aneel

Similar Threads & Tags
Similar threads

  1. [Case 45599] Can't Extract .tar file in cPanel File Manager
    By voezie in forum New User Questions
    Replies: 4
    Last Post: 07-22-2011, 09:10 AM
  2. Cannot restore backup from cpmove file
    By scooby_london in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-06-2009, 08:51 AM
  3. CpMove File Restore
    By edumadma in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-13-2008, 09:04 PM
  4. Replies: 2
    Last Post: 02-03-2006, 03:23 PM
  5. cpmove file
    By randynov in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-05-2003, 08:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube