A passionate programmer’s findings in the world of internet.

Archive for the 'Web Server Administration' Category

Using wget for Server Migration

Thursday, January 19th, 2012

I thought wget is solely good for downloading stuff when you ssh to your server, it can also be used to access FTP account and recursively pull everything over!

wget -r -l 100 ftp://login:password@domain.com/public_html

-r for recursive
-l 100 for 100 level of depth, wget has a default depth of 5 levels only

I learned about this from this site, but he didn't mentioned about depth. I have to redo the whole process and my client had to wait longer.

Hope you find this useful.