robsedor Posted February 16, 2006 Report Share Posted February 16, 2006 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 More sharing options...
Lennart_T Posted February 17, 2006 Report Share Posted February 17, 2006 Hi. I think you can use a selector for this. Don't backup FOLDERS whose enclosing folder is .... HTH Lennart Link to comment Share on other sites More sharing options...
TheBum Posted February 17, 2006 Report Share Posted February 17, 2006 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 More sharing options...
twickland Posted February 17, 2006 Report Share Posted February 17, 2006 Try this: Always exclude files matching folder name does not exactly match html and enclosing folder pathname contains usr/share/swupd/html That should include the documents that are in the directory html but are not in a subdirectory Link to comment Share on other sites More sharing options...
robsedor Posted February 26, 2006 Author Report Share Posted February 26, 2006 Thanks, twickland. Your suggestion worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.