Re: Excluding two subdirectories in rsync

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

 



Christopher K. Johnson wrote:
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/"   ???


Add another --exclude instead.
rsync -auv rsync://mirrors..../updates/i386/ --delete --exclude=debug/ --exclude=drpms/ /repos/centos/updates/i386

Let me say that Anne has showed how to use a skiplist, and that's the better way. After that I'll note that this is where you might find shell brace-comma notation saves a lot of typing and keeps lines in scripts reasonable:
  rsync -auv ~ --exclude={*~,[Cc]ache/} bkup.my.domain:/bkup/$(hostname)

More useful in a one time manually typed command, obviously.

--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--
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