Re: Excluding two subdirectories in rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 25 August 2009 14:18:48 Robert Moskowitz wrote:
> I have been using an rsync for Centos updates like:
>
> rsync -auv rsync://mirrors..../updates/i386/ --delete --exclude=debug/
> /repos/centos/updates/i386
>
>
> But for Fedora 11, I see there is a drpms subdirectory that I ASSuME I
> don't need, drpms.
>
> How do I exclude two subdirectories?  I can't figure it out from the man
> pages.
>
> --exclude="debug/ drpms/"   ???

You need a skip-list file.  Mine is called rsync_skiplist, and contains the 
following:

*~
.[a-z]*
.[A-Z]*
lost+found/
recordings/
Temp/mydvd

Directories are relational to the directory where  your rsync script is, so in 
this case I'm skipping ~home/anne/recordings, for instance.

Then, in your rsync script, simply insert into your command --exclude-
from=/home/you/rsync_skiplist - adjusting path, of course.

HTH

Anne
-- 
New to KDE4? - get help from http://userbase.kde.org
Just found a cool new feature?  Add it to UserBase

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux