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.

Wget Expert Wanted

Discussion in 'General Discussion' started by lloyd_tennison, Feb 1, 2005.

  1. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    I am moving some websites onto my server (not anyone that Whm can handle) and would like to be able to use wget and the ftp function - but I keep not having it recurse through all the directories. In wget with http, i.e.
    HTML:
    wget -r -nc  -nH  -c http://www.mywebsite.net
    works fine, but the same - with what seems to be the needed -l all that transfers are the Front Page folders (_vti..)
    HTML:
    wget -r -l 5 -nc -c -nH ftp://user:password@ftp.sitetotransfer.com/public_html/
    Anyone have any thoughts - as all the references that I Google seem to say this will work.

    Thanks in advance.

    Oh, just found out that (at least in http mode) it converts spaces in directory names to %20. Now I need to see if all links will work - or figure out how to search and replace in filename - with recursion...
     
    #1 lloyd_tennison, Feb 1, 2005
    Last edited: Feb 1, 2005
  2. s_2_s

    s_2_s Well-Known Member

    Joined:
    Aug 9, 2004
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    16
  3. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    Do not have shell or ssh access on old server .
     
  4. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    Create a full backup of your site in Cpanel.

    When its finished log in via FTP and copy the backup to www

    Then do wget on yourdomain.com/backup_file_date_username.tar.gz

    Then decompress it on the new server.

    Make sure and delete the backup you moved from the old server so someone doesn't come by an download it.
     
  5. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Hello,

    Try these - options too :)

    To copy the whole site (including above the public_html)

    wget --mirror -w 3 -p -P site_data_goes_here ftp://user:password@xxx.xxx.xxx.xxx (your IP)

    Will copy all files from xxx.xxx.xxx.xxx to the directory site_data_goes_here

    If you just want the html files from a site, no ftp login needed (all lower than public_html).. try

    wget --mirror -w 2 -p --html-extension --convert-links -P site_data_goes_here http://www.your_domain.com

    :)
     
    #5 DigitalN, Feb 2, 2005
    Last edited: Feb 2, 2005
  6. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    I gave this a try today moving an account from a plesk server, it worked quite nicely ;)
     
  7. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    Yes, it sure does! Thank you DigitalN.
     
  8. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Not a problem :)
     
Loading...

Share This Page