Friday, September 9, 2011

Linux CLI - FTP Recursive files and Directories

I was looking to download a whole website to my VPS linux box so I could use the power of the command line to clean out some malicious code from hundreds of files.

In my search, I wasn't able to find a built in command in FTP to easily get all the files, but I was able to use WGET in a fashion to recursively grab all the files and folders I needed.

Here's the code
wget -r 'ftp://user:pass@domain'

No comments:

Post a Comment