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

Using wget for Server Migration

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.

If my article helped you solved your problem, consider buy me a beer!

Share this article: del.icio.us | digg it

Related posts:

One Response

KingKong says:

better use rsync

rsync -Pave ‘ssh’ @:

much faster, with compression.
to be executed from sourceserver