Jump to content

How to include files in directory, but exclude subdirectories?


Recommended Posts

I'm backing up an OS X Tiger server. The server acts as a Software Update server which mirrors copies of all Apple software updates. This takes up a lot of storage on our server and we are running out of room on our backup tape. I'd like to backup the index file for the updates, but not the updates themselves. The index file is stored in /usr/share/swupd/html . The updates are stored in subdirectories of this directory. How can I include the index file in /usr/share/swupd/html in my backup while not backing up the subdirectories? How would I set up the include/exclude rule in my script?

 

TIA,

 

Robert

Link to comment
Share on other sites

Another possibility may be to use a selector for a folder (NOT an enclosing folder) whose path is /usr/share/swupd/html. A folder selector is supposed to skip backing up subdirectories whereas an enclosing folder selector is supposed to recursively include subdirectories.

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...