Excluding a directory when copying
How do I copy everything in a directory but exclude one or more subdirectories?
For example, suppose I wanted to cp /etc/*, but I wanted to exclude /etc/rc.d? Thanks again. |
I don't think cp has an exclude, you could use rsync to do this though..
rsync --exclude rc.d -av /etc/* /other/location |
Thanks for the reply. My original question is backup-related and so my next step will be to become more acquainted with rsync.
|
All times are GMT -5. The time now is 09:03 PM. |