|
|
10.6: Create a new Service to 'tar' directories or files
Very nice services script! It was a useful start for me! I would recommend changing the 'h' argument to 'H' though. With 'h', you could end up trying to tar your entire harddisk if a folder contains a symlink to the root of your harddisk. I also added 2 environment variables to my version that should prevent archiving of Mac Resource Fork files, such as .DS_Store. I also added automatic timestamping, because it helps keeping track of backups. Since the timestamp makes it rather unique, I guess the whole $count part of the script could've been removed, but I've kept it for safety anyway. First my version of the TAR script:
And since another commenter asked about tar.gz, here is my TGZ version too:
And for completeness-sake, one using bzip2 compression: the TBZ version:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|