Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'One-step backup and burn to CD/DVD' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
One-step backup and burn to CD/DVD
Authored by: eagle on May 24, '04 01:45:25PM
That could be further simplified:

tar -czf PUT_YOUR_ARCHIVE_FILE_NAME_HERE.tar.gz `ls -d ~/.??* | grep -v Trash | grep -v DS_Store`

But both this one and yours would prepend /Users/username to the file listing, which may be undesirable. If that is not desired, the following might be better:

#!/bin/sh
chdir ~
tar -czf PUT_YOUR_ARCHIVE_FILE_NAME_HERE.tar.gz `ls -d .??* | grep -v Trash | grep -v DS_Store`


[ Reply to This | # ]