lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
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:[email protected]/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...
 
Last edited:

djmerlyn

Well-Known Member
Aug 31, 2004
201
1
168
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.
 

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
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:[email protected] (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

:)
 
Last edited: