Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Moving 200MB+ Of Files: Quickest Method?

Discussion in 'General Discussion' started by SaintDog, Aug 30, 2003.

  1. SaintDog

    SaintDog Member

    Jul 24, 2002
    Likes Received:
    Trophy Points:
    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! Support Ticket Number:
  2. thedavid

    thedavid Well-Known Member

    Nov 22, 2002
    Likes Received:
    Trophy Points:
    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'

    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.


    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 Support Ticket Number:
  3. dc2447

    dc2447 Well-Known Member

    Apr 18, 2003
    Likes Received:
    Trophy Points:
    rsync Support Ticket Number:

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice