LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2006, 09:14 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Rep: Reputation: 31
sync local with remote


after downloading a bunch of files from an ftp server. i did a selection of some files from the ftp server, i got them on a dvd. i would like to update those files once in a while. is there any way to do it automatically.
if not, then how could i mirror a ftp server, but to include only a specific architecture, i want 386? how can i exclude cvs, and other architectures?
 
Old 05-04-2006, 03:22 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,154
Blog Entries: 1

Rep: Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019
You can use wget via a cronjob to update the files you want, or even to mirror the ftp server.
Code:
man wget
for details
 
Old 05-04-2006, 03:28 AM   #3
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
up to now i thought to use wget, but i did know how. let's say that iam having the file in /home/user/folderX and the ftp server is the ftp://ftp.nerim.net/debian-marillat/pool/main/ , could you tell me how to do it? the thing is that wget will download everything from there, but i do not want the cvs builds, and the other architectures. all i want is the i386. any ideas?
 
Old 05-04-2006, 03:57 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,154
Blog Entries: 1

Rep: Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019Reputation: 2019
You can use something like:
Code:
 wget -m -nH ftp://ftp.nerim.net/debian-marillat/pool/main/ -X cvs,i486
After the -X switch you can list the directories you don't want to d/l (comma separated). You can also create a file with all the dirs you want to exclude. Read the man pages for more info
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Synchronizing local and remote files jrdioko Linux - Software 10 11-15-2005 02:13 PM
samba permissions local/remote Astro Slackware 1 04-26-2005 01:22 AM
Updating a remote server with a local cd korozion Linux - General 4 07-15-2004 05:19 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 04:48 PM
Local and Remote X login lancest Linux - Networking 0 06-28-2002 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:30 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