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

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...