LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-10-2013, 09:13 AM   #1
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
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!
 
Old 01-10-2013, 09:46 AM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,213

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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.
 
Old 01-10-2013, 09:50 AM   #3
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,571

Rep: Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805
I don't know about "best" but wget can do this for you and even has a "--mirror" option.
 
Old 01-10-2013, 02:02 PM   #4
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Original Poster
Rep: Reputation: 50
Thank you, this is what I ended up using:
Code:
wget --mirror [prot]://[username]:[password]@[hostname]/[directory to mirror
 
Old 01-10-2013, 02:06 PM   #5
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,571

Rep: Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805Reputation: 805
Glad to be of help. Don't forget to mark the thread as Solved.
 
1 members found this post helpful.
  


Reply

Tags
ftp, mirror, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP: Get count of files on a remote machine directory to the source Linux machine mamu Linux - Newbie 3 10-28-2011 05:10 PM
Why cannot remote create directory in ftp server vsftpd ychen184006 Linux - Server 1 09-16-2009 11:23 PM
FTP users home directory on remote server byahya Linux - General 1 08-13-2008 10:41 AM
Need password for ftp mirror awp10 Slackware 3 10-12-2007 07:36 PM
mirror a remote svn happybear Slackware 2 01-31-2007 08:46 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration