Recursive FTP from linux command prompt


An interesting option I just came accross while trying to FTP a complete site down to my linux clinet from the command line

Instead of using the ftp client or mget etc

you can use

wget -r ftp://username:password@www.yourdomain.com/

But I think this may only recurse directories down to a level of 5

So using the switch -l 0

This solves that problem

wget -r  -l 0 ftp://username:password@www.yourdomain.com/

Comments

Post a Comment

Popular posts from this blog

ActiveMQ, easy to use open source message oriented middleware (MOM)

Basic Send Message to MQ with Java and IBM MQ JMS

MySQL Error Invalid Table or Database Name