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 02-09-2010, 08:16 PM   #1
eyeprotocol
LQ Newbie
 
Registered: Jul 2008
Posts: 9

Rep: Reputation: 0
Question Rsync exclude (or include) issue


Hello.

I am trying to use rsync in order to create a mirror of the contents of a remote disk. I know how to do it, but here is the problem: the disk contains several directories, each of which has the exact same contents, except for a subdirectory.

For example

Directory One
file 1
file 2
file 3
subdir 1
subdir 2
file 4
...
Directory Two
file 5
file 6
file 7
subdir 3
subdir 2
file 8
...
I am interested in mirroring the contents of "subdir 2", and not the contents of any other file or dir that may (or may not) be inside "Directory One" and "Directory Two".

I've already tried several ideas for including (or excluding) names in my rsync command, but nothing i can think of seems to be working properly. I would appreciate any help.

Panos
 
Old 02-09-2010, 11:08 PM   #2
eckirchn
LQ Newbie
 
Registered: Feb 2010
Location: Colorado
Distribution: Fedora
Posts: 17

Rep: Reputation: 1
Quote:
Originally Posted by eyeprotocol View Post
Hello.

I am trying to use rsync in order to create a mirror of the contents of a remote disk. I know how to do it, but here is the problem: the disk contains several directories, each of which has the exact same contents, except for a subdirectory.


I've already tried several ideas for including (or excluding) names in my rsync command, but nothing i can think of seems to be working properly. I would appreciate any help.

Panos

Here is how i RSYNC my Fedora Repos to my Samba server


rsync -avrt rsync://mirror.anl.gov/fedora/linux/updates/12/x86_64/ --exclude=debug/ /var/www/html/Fedora/updates/12/x86_64


Is your remote source rsync'able?
 
  


Reply

Tags
exclude, include, rsync



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
rsync include/exclude problems toaster.waffle Linux - Software 4 11-19-2009 09:57 AM
help with rsync exclude files Red Squirrel Linux - Software 4 03-03-2009 10:54 AM
help with rsync exclude syntax please JacekZ Linux - General 2 07-08-2007 01:23 PM
What files to exclude when using rsync TongueTied Linux - General 2 07-20-2006 08:39 PM
include/exclude apps from panel linmix Fedora 6 01-23-2005 12:25 PM

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

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration