Migrating large Cpanel Website backup Issue

14 posts / 0 new
Last post
#1 Tue, 12/06/2011 - 18:53
chiefguerra

Migrating large Cpanel Website backup Issue

Hello, I'm new here but I'm in need of some help on migrating a fairly large (11GB) website as Cpanel as a tar.gz file. I'm not able to migrate through the virtaulmin panel as it's too large. After doing research I understood that the best way to do this is use "scp" in linux SSH using putty. After using the below script, it goes through the process and completes, but after going back into virtualmin it's not created.

Am I using the right approach below or is there a better and faster way on migrating a large site over?

scp backupmotorpool.tar.gz root@themotorpool.org:/public_html/

My location of file is in: home/chief Location of server: home/themotorpool

Please help..

Thanks, Ben

Tue, 12/06/2011 - 22:16
andreychek

Howdy,

Yeah, if you have a large backup file, scp'ing that backup to your Virtualmin server can help.

After that, you'd log into Virtualmin, and click Add Servers -> Migrate Virtual Server, and point that towards the backup that you copied to your server.

Are those the steps that you took?

-Eric

Wed, 12/07/2011 - 17:27 (Reply to #2)
chiefguerra

Eric, Correct..that's how I'm importing into the virtual server using , but when I go into migrate it over with virtualmin, I'm not seeing that file that was supposively transferred over using using that command in putty.

I'm stuck and can't migrate it over.

Ben

Wed, 12/07/2011 - 22:09
andreychek

Oh I see, you're not seeing the file that you copied over.

Well, looking deeper at the location you copied it to -- there isn't actually a /public_html/ folder on the server by default. If you didn't create that directory, that may be the problem you're having.

What you might try instead is to copy it to /root/, which would already exist.

So that would be:

scp backupmotorpool.tar.gz root@themotorpool.org:/root/

Let us know if that does the trick!

-Eric

Wed, 12/07/2011 - 22:35
chiefguerra

Eric, I first created the server to ensure to have the password to use in putty..while the server was created, it created all necessary file and folders. The public_html was one of that was created but for some reason it's not being transferred over into that folder when running that command.

I first went into the home directory and then into the folder where the tar.gz file is located, ran the command and it completes, but when I go and try and migrate it over, that file isn't there.

It completes with a 100% and no errors, but I find it strange that it's not there. urrhh

I believe I had already tried the root in the end which is why I tried changing it to the public_html folder. I'll try again..

Thanks, Ben

Wed, 12/07/2011 - 23:10
chiefguerra

I tried that and still no file to founded during a migrate attempt.

Ben

Thu, 12/08/2011 - 08:58
stels88

can help you, contact me via email oleg.smirnov.1988@gmail.com

Thu, 12/08/2011 - 08:59
andreychek

What are you entering for the "Source Backup File" on the "Migrate Virtual Server" page?

-Eric

Thu, 12/08/2011 - 09:06
stels88
  1. Local file or directory: YES

  2. a. browse, b. change path to /root, c. select file cpmoveusername.tar.gz or backupusername.tar.gz and click ok

  3. Backup file type: cPanel backup

Thu, 12/08/2011 - 18:29
chiefguerra

We moved the tar.gz file over to the actual vritualmin server created and into the root. previously it was in a different server and in a public_html folder and not in the server wanting to migrate over,

Now selected part of the migration step, so we'll see if it works. large file so might take a while to migrate over.

More to follow!!

Fri, 12/09/2011 - 10:45
chiefguerra

The migration procedure is causing my server to crash while migrating this large tar.gz cpanel backup file..

Any ideas?

Fri, 12/09/2011 - 11:08
andreychek

When your server crashes, what is happening exactly? Are you saying it's locking up, and none of the services running on it are accessible any more?

If so, that could mean a few things... we may want to start by looking at RAM though.

If you log into your server over SSH and run this command, what output do you receive:

free -m

Fri, 12/09/2011 - 15:23
chiefguerra

Currently there is only one server running on that dedicated server.. I believe it's crashing because I made the entire backup of the server directory, and not just SQL, home etc..

Sat, 12/10/2011 - 08:38
stels88

how about create cpanel backup exclude home dir and and do transfer of home dir using rsync, the same for mail messages.

or via cpanel backups/access and using "exclude file" in home dir to include biggest folder for exclude ? and do rsync for that folder?

Skipping Files and Accounts

You may wish to skip files or certain accounts. To skip files, create a cpbackup-exclude.conf file in the account root and simply list (you can use regular expressions) the files that you don’t want to back up. If you want to globally skip certain files, you can edit /etc/cpbackup-exclude.conf (which already contains a list of skipped files) to be excluded from all cPanel backups created. To exclude users from backups, create /etc/cpbackup-userskip.conf and list the users you don’t want to back up.

Topic locked