LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Best way to mirror remote FTP directory (https://www.linuxquestions.org/questions/linux-general-1/best-way-to-mirror-remote-ftp-directory-4175444992/)

ctkroeker 01-10-2013 08:13 AM

Best way to mirror remote FTP directory
 
Hello,

What is the best way to mirror remote ftp directories to a local server?

I want a scipt to execute every night, to check and download all the new files available. The remote server is not mine.

Thank you for your help!

schneidz 01-10-2013 08:46 AM

i think rsync is what you want. i used it many years ago when i worked for an engineering company that wanted to keep firmware changes current among all their locations.

273 01-10-2013 08:50 AM

I don't know about "best" but wget can do this for you and even has a "--mirror" option.

ctkroeker 01-10-2013 01:02 PM

Thank you, this is what I ended up using:
Code:

wget --mirror [prot]://[username]:[password]@[hostname]/[directory to mirror

273 01-10-2013 01:06 PM

Glad to be of help. Don't forget to mark the thread as Solved.


All times are GMT -5. The time now is 05:41 PM.