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.

Moving 200MB+ Of Files: Quickest Method?

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

  1. SaintDog

    SaintDog Member

    Joined:
    Jul 24, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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:
     
  2. thedavid

    thedavid Well-Known Member

    Joined:
    Nov 22, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    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 username@servername.domainname.com:/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:
     
  3. dc2447

    dc2447 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    rsync

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page