The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

username.tar.gz are not a cpmove file?

Discussion in 'Data Protection' started by pueblosnet, Sep 17, 2008.

  1. pueblosnet

    pueblosnet Active Member

    Joined:
    Dec 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are you attempting to use the Restore an Acccount feature by using a .tar.gz file you created via File Manager?
     
  3. pueblosnet

    pueblosnet Active Member

    Joined:
    Dec 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    sure! only works if I restore it login in the cpanel user
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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. pueblosnet

    pueblosnet Active Member

    Joined:
    Dec 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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. hennysavenije

    hennysavenije Registered

    Joined:
    Apr 26, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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. AnilR

    AnilR Active Member

    Joined:
    Nov 24, 2007
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    hennysavenije,

    Really innovative ..good solution ;)
     
Loading...

Share This Page