LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 08:13 AM   #1
ctkroeker
Senior Member
 
Registered: May 2005
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, 08:46 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 08:50 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

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

Original Poster
Blog Entries: 1

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, 01:06 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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



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 04:10 PM
Why cannot remote create directory in ftp server vsftpd ychen184006 Linux - Server 1 09-16-2009 10:23 PM
FTP users home directory on remote server byahya Linux - General 1 08-13-2008 09:41 AM
Need password for ftp mirror awp10 Slackware 3 10-12-2007 06:36 PM
mirror a remote svn happybear Slackware 2 01-31-2007 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 PM.

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
Open Source Consulting | Domain Registration