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.

Move cPanel account manually without taking full backup

Discussion in 'Data Protection' started by leonardoasb, Oct 23, 2015.

  1. leonardoasb

    leonardoasb Registered

    Joined:
    Oct 23, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Currently have a vps with 100gb of which 90% is busy, and I do not like hiring more disk space on the current provider. Now I will change provider and would like to know how I can proceed with the migration, as it will not be possible to generate a FullBackup - for lack of space.

    Any idea what I can do?

    I thank you all.

    I can not hire more hd the current provider does not offer this feature.
     
    #1 leonardoasb, Oct 23, 2015
    Last edited by a moderator: Oct 23, 2015
  2. lldeepakll

    lldeepakll Well-Known Member

    Joined:
    May 20, 2012
    Messages:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    Simply create the required account on new vps (with same username as on old) and then you can use rsync command to copy all data of /home/username to new vps.

    Run following from old vps to copy all the data from old to new

    rsync -vrplogDtH /home/username root@NewServerIP:/home/username

    Take database's dump using phpmyadmin or command line and then restore them in new vps.

    From command line you can take the database backup using below command:

    mysqldump databasename > databasename.sql

    Then send the sql file to new vps and restore it using following command

    mysql databasename < databasename.sql


    Thanks
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, you can migrate your all account from your current vps provider to new provider without cPanel full backup. You will have to generate your account backup with --skiphomedir , With this options cPanel backup scripts will create your cPanel account backup without user home directory, so please give a try with following steps and let us know.

    1) Generate backup without home directory

    Code:
    /scripts/pkgacct --skiphomedir username
    2) Migrate account backup file to new server using rsync and restore that file on your new server using /scripts/restorepkg scripts.

    3) Once backup file is restored, Just rsync your user home directory from old server to new server with rsync

    Code:
    rsync -av --progress /home/user/* NEW-Server-ip:/home/user/
     
    Eric likes this.
  4. leonardoasb

    leonardoasb Registered

    Joined:
    Oct 23, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Very personal thank you.

    Generate backup without the home directory and then used the rsync. Everything worked fine.

    Thanks again.
     
  5. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Can't you just use transfer tool from WHM to copy each account one by one?
     
  6. leonardoasb

    leonardoasb Registered

    Joined:
    Oct 23, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Hi,

    It was only an account with 83GB. The tool transfer did not work for me.

    I generated the backup manually with -skiphomedir and then used the rsync.

    This worked very well for me.
     
    Eric likes this.
  7. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    I am glad to hear that your issue is resolved. Your appreciation is worthwhile.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I am happy to see that method worked well. Thank you for updating us with the outcome.
     
  9. bduhamel

    bduhamel Member

    Joined:
    Jul 18, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    I have a somewhat similar situation and I was wondering exactly how to go about doing this. I did an OS reload on my cloud server, and while it did a data preservation of the primary volume before reloading, my WHM points to an external volume where my account was. I honestly didn't realize I was going to need to back up my account before I reloaded the OS, because I new this data wasn't going to be touched, and it wasn't. But now WHM won't find this account. I've created a new account under a different name on this volume. Can I use this rsync -vrplogDtH /home/username command to move my original account data into the new account directory and then simply rename this to the old username in WHM to get my account back and my website and emails, etc. back online? Thanks for any help! :)
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you elaborate further on this? For instance, where is the account's home directory stored, and what's configured as the default home directory in "WHM >> Server Configuration >> Basic cPanel and WHM Setup"?

    Thank you.
     
  11. bduhamel

    bduhamel Member

    Joined:
    Jul 18, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    In WHM the home directory is set to /home2 and that is where my previous account is stored. It's at /home2/bluray I actually created a new account with new name at /home2/bluray2 because WHM will not see my /home2/bluray account. I want to get the bluray account into bluray2 and rename it to bluray once the files are synced back. I'm hoping that's possible.
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify if the /var partition was preserved or reinstalled as part of the OS installation? The /var directory is where account configuration data is stored.

    Thank you.
     
  13. bduhamel

    bduhamel Member

    Joined:
    Jul 18, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    The /var directory was preserved and I rsynced it back to the primary partition after the OS reload.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You should be able to simply move the account's home directory back into place without creating a new account. Does the /var/cpanel/users/$username file exist for this username?

    Thank you.
     
  15. bduhamel

    bduhamel Member

    Joined:
    Jul 18, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    Yeah, that's the problem. I don't know what happened, but this file does not exist. Maybe it got screwed up during the data preservation, but when I did rsync, it wasn't there. The only username there now is the new account I created. WHM just refuses to see my old account.
     
  16. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    In this case, you should create a new account using the same domain name and username, as opposed to creating an account with a different domain name/username. Once you do this, you can try to rsync the data to the appropriate home directory associated with the account.

    Thank you.
     
  17. bduhamel

    bduhamel Member

    Joined:
    Jul 18, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    Okay, thanks. I'll give this a shot and see how it goes.
     
  18. bduhamel

    bduhamel Member

    Joined:
    Jul 18, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    I'm getting this error when I try to create my database in cPanel so I can send the old one back in:

    Code:
    Failed to save cache file “/home2/bluray/.cpanel/nvdata.cache” because of an error: (XID qrnu9y) The system failed to create the file “/home2/bluray/.cpanel/nvdata.cache.tmp.79351865” with permissions “0640” (EUID: “505”; EGID: “505”) because of an error: Permission denied at /usr/local/cpanel/Cpanel/NVData.pm line 119.
    at /usr/local/cpanel/Cpanel/NVData.pm line 119.
       Cpanel::NVData::catch {...} (Cpanel::Exception::IO::FileCreateError=HASH(0x767b2c0)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Try/Tiny.pm line 103
       Try::Tiny::try(CODE(0x766de00), Try::Tiny::Catch=REF(0x767a648)) called at /usr/local/cpanel/Cpanel/NVData.pm line 121
       Cpanel::NVData::_savecache() called at /usr/local/cpanel/Cpanel/NVData.pm line 235
       Cpanel::NVData::_loadcache(1) called at /usr/local/cpanel/Cpanel/NVData.pm line 259
       Cpanel::NVData::_get("x3_litegraphics") called at /usr/local/cpanel/Cpanel/ExpVar/MultiPass.pm line 133
       Cpanel::ExpVar::MultiPass::__ANON__(__CPANEL_HIDDEN__) called at /usr/local/cpanel/Cpanel/ExpVar/MultiPass.pm line 502
       Cpanel::ExpVar::MultiPass::expand(HASH(0x7680110), undef) called at /usr/local/cpanel/Cpanel/ExpVar.pm line 173
       Cpanel::ExpVar::expvar("\$NVDATA{'x3_litegraphics'}") called at /usr/local/cpanel/Cpanel/Parser/FeatureIf.pm line 102
       Cpanel::Parser::FeatureIf::ifresult("<cpanelif \$NVDATA{'x3_litegraphics'}>") called at /usr/local/cpanel/Cpanel/Parser/FeatureIf.pm line 28
       Cpanel::Parser::FeatureIf::execiftag("<cpanelif \$NVDATA{'x3_litegraphics'}>") called at cpanel.pl line 4075
       cpanel::cpanel::dotag_finished_headers(0) called at cpanel.pl line 3930
       cpanel::cpanel::cpanel_parseblock("<!-- START stdmheader.html -->\x{a}<cpanelif \$NVDATA{'x3_litegrap"...) called at cpanel.pl line 3882
       cpanel::cpanel::y(GLOB(0x76303b0)) called at cpanel.pl line 3009
       cpanel::cpanel::doinclude("/usr/local/cpanel/base/frontend/x3/branding/stdmheader.html", 0, 1) called at /usr/local/cpanel/Cpanel/cpanel.pm line 155
       eval {...} called at /usr/local/cpanel/Cpanel/cpanel.pm line 155
       Cpanel::cpanel::_wrap_include("/usr/local/cpanel/base/frontend/x3/branding/stdmheader.html", 0, 1) called at /usr/local/cpanel/Cpanel/API/Branding.pm line 61
       Cpanel::API::Branding::include(Cpanel::Args=HASH(0x7648fa8), Cpanel::Result=HASH(0x762d900)) called at /usr/local/cpanel/Cpanel/API.pm line 284
       Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 356
       eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 356
       Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x762d900), CODE(0x7649098)) called at /usr/local/cpanel/Cpanel/API.pm line 284
       Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x7648fa8), Cpanel::Result=HASH(0x762d900), "Branding", "include") called at /usr/local/cpanel/Cpanel/API.pm line 81
       Cpanel::API::_execute("Branding", "include", HASH(0x75f5890)) called at /usr/local/cpanel/Cpanel/Branding.pm line 64
       Cpanel::Branding::Branding_include("stdmheader.html") called at cpanel.pl line 1813
       eval {...} called at cpanel.pl line 1813
       cpanel::cpanel::_api1("Branding", "branding", "include(stdmheader.html)", "include", ARRAY(0x75f58a8), "safe_html_encode", undef, undef) called at cpanel.pl line 1743
       cpanel::cpanel::real_exectag("<cpanelif \$NVDATA{'x3_litegraphics'}>") called at cpanel.pl line 4092
       cpanel::cpanel::dotag_finished_headers(0) called at cpanel.pl line 3967
       cpanel::cpanel::cpanel_parseblock("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN"...) called at cpanel.pl line 3882
       cpanel::cpanel::y(GLOB(0x75faf28)) called at cpanel.pl line 3009
       cpanel::cpanel::doinclude("/usr/local/cpanel/base/frontend/x3/branding/stdheader.html", 0, 1) called at /usr/local/cpanel/Cpanel/cpanel.pm line 155
       eval {...} called at /usr/local/cpanel/Cpanel/cpanel.pm line 155
       Cpanel::cpanel::_wrap_include("/usr/local/cpanel/base/frontend/x3/branding/stdheader.html", 0, 1) called at /usr/local/cpanel/Cpanel/API/Branding.pm line 61
       Cpanel::API::Branding::include(Cpanel::Args=HASH(0x75f56e0), Cpanel::Result=HASH(0x75fcc90)) called at /usr/local/cpanel/Cpanel/API.pm line 284
       Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 356
       eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 356
       Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x75fcc90), CODE(0x75faf58)) called at /usr/local/cpanel/Cpanel/API.pm line 284
       Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x75f56e0), Cpanel::Result=HASH(0x75fcc90), "Branding", "include") called at /usr/local/cpanel/Cpanel/API.pm line 142
       Cpanel::API::execute("Branding", "include", HASH(0x75fcd38)) called at /usr/local/cpanel/base/frontend/x3/sql/index.auto.tmpl line 4
       eval {...} called at /usr/local/cpanel/base/frontend/x3/sql/index.auto.tmpl line 4
       eval {...} called at /usr/local/cpanel/base/frontend/x3/sql/index.auto.tmpl line 7
       Template::Document::__ANON__(Template::Context=HASH(0x751ae18)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
       eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
       Template::Document::process(Template::Document=HASH(0x75f5e90), Template::Context=HASH(0x751ae18)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
       eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
       Template::Context::process(Template::Context=HASH(0x751ae18), Template::Document=HASH(0x75f5e90)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
       eval {...} called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
       Template::Service::process(Template::Service=HASH(0x751aa40), "/usr/local/cpanel/base/frontend/x3/sql/index.auto.tmpl", HASH(0x7162208)) called at /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
       Template::process(Template=HASH(0x6b62a18), "/usr/local/cpanel/base/frontend/x3/sql/index.auto.tmpl", HASH(0x7162208), SCALAR(0x20d8918)) called at /usr/local/cpanel/Cpanel/Template.pm line 435
       Cpanel::Template::process_template("cpanel", HASH(0x7162208), HASH(0x61c0c50)) called at cpanel.pl line 1206
       cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/x3/sql/index.auto.tmpl", 1) called at cpanel.pl line 5197
       cpanel::cpanel::run_standard_mode() called at cpanel.pl line 862
       cpanel::cpanel::script("cpanel::cpanel", "./frontend/x3/sql/index.html") called at cpanel.pl line 332
     
    #18 bduhamel, Jul 18, 2016
    Last edited by a moderator: Jul 24, 2016
  19. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    It seems like an ownership issue with the files/directories associated with the account. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  20. bduhamel

    bduhamel Member

    Joined:
    Jul 18, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    Sorry I never responded. I am having MAJOR issues on my server and have been under a possible DDoS attack, maybe worse for over a week. My website has been basically offline for approaching three weeks! -_- It would be nearly impossible to sort anything out now. All attention is focused on sorting out what is going on, getting stability back, and getting us back online. Will update later.
     
Loading...

Share This Page