Move cPanel account manually without taking full backup
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.
-
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 0 -
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 /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 rsyncrsync -av --progress /home/user/* NEW-Server-ip:/home/user/
0 -
Very personal thank you. Generate backup without the home directory and then used the rsync. Everything worked fine. Thanks again. 0 -
Can't you just use transfer tool from WHM to copy each account one by one? 0 -
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. 0 -
Hello :), I am glad to hear that your issue is resolved. Your appreciation is worthwhile. 0 -
I generated the backup manually with -skiphomedir and then used the rsync. This worked very well for me.
Hello :) I am happy to see that method worked well. Thank you for updating us with the outcome.0 -
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! :) 0 -
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.
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.0 -
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.
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.0 -
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. 0 -
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.
The /var directory was preserved and I rsynced it back to the primary partition after the OS reload.0 -
The /var directory was preserved and I rsynced it back to the primary partition after the OS reload.
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.0 -
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.
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.0 -
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.
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.0 -
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.
Okay, thanks. I'll give this a shot and see how it goes.0 -
I'm getting this error when I try to create my database in cPanel so I can send the old one back in: [SPOILER="Error Output"> 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("") called at /usr/local/cpanel/Cpanel/Parser/FeatureIf.pm line 28 Cpanel::Parser::FeatureIf::execiftag("") called at cpanel.pl line 4075 cpanel::cpanel::dotag_finished_headers(0) called at cpanel.pl line 3930 cpanel::cpanel::cpanel_parseblock("\x{a}") called at cpanel.pl line 4092 cpanel::cpanel::dotag_finished_headers(0) called at cpanel.pl line 3967 cpanel::cpanel::cpanel_parseblock("
0 -
I'm getting this error when I try to create my database in cPanel so I can send the old one back in:
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.0 -
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.
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.0
Please sign in to leave a comment.
Comments
19 comments