Moving 200MB+ Of Files: Quickest Method?

SaintDog

Member
Jul 24, 2002
20
0
151
I have a client I am having to move in the next few hours which has 200MB+ of actual files and 100MB+ of database files, which the database files can be moved via a WGET very easily, moving so many single files is going to be a huge pain.

The way the servers are setup we have all 3 servers using the same DNS and sharing the DB files, meaning we cannot use WHM to move the site because it states as DNS entry already exists and needs to be removed.

What would be the quickest way to move all files in the public_html directory? The point here is to move the site to a faster server with as little downtime as possible.

Any help would be appreciated!

cPanel.net Support Ticket Number:
 

thedavid

Well-Known Member
Nov 22, 2002
124
0
166
If I were moving it manually...

go to the directory of the user.

type 'tar -cf moving.tar *"
type 'gzip moving.tar'

The above will create a compressed 'mirror' of the files.

type 'scp moving.tar [email protected]:/home/username/www/'

Enter the users password.

Go to the other machine, go to the directory, and type 'tar -xvzf moving.tar.gz'

That'll uncompress it all.

Next, modify the TTL on the DNS records to be some low value, down from the default of 4 hours.

Wait 4 hours for the TTL to be reduced for all the visitors

Copy the mysql database over, and change the DNS records to reflect the new account on the new server.

**or**

Simply reduce the TTL, wait, then do a "copy account from another server". That'll update it back to the 4 hours and make the DNS changes for you.

Either way, the TTL thing is important as it'll reduce the number of visitors that the old server will see for this site.

Also note that some backwater ISP's won't honor the TTL request, and instead enforce their own limit. Absolutely nothing you can do about this.

-David

cPanel.net Support Ticket Number:
 

dc2447

Well-Known Member
Apr 18, 2003
49
0
156
Originally posted by SaintDog
I have a client I am having to move in the next few hours which has 200MB+ of actual files and 100MB+ of database files, which the database files can be moved via a WGET very easily, moving so many single files is going to be a huge pain.

The way the servers are setup we have all 3 servers using the same DNS and sharing the DB files, meaning we cannot use WHM to move the site because it states as DNS entry already exists and needs to be removed.

What would be the quickest way to move all files in the public_html directory? The point here is to move the site to a faster server with as little downtime as possible.

Any help would be appreciated!

cPanel.net Support Ticket Number:
rsync

cPanel.net Support Ticket Number: