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

Click here to return to the 'Create daily backups on an encrypted disk image' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create daily backups on an encrypted disk image
Authored by: White Fire on Jun 18, '04 11:34:20PM
It might be wise to replace the gzip lines to bzip2 to increase the compression rate if you have a bit more grunt and/or time. This will also mean you have to change a the standard tar extensions to tar cjf /path/to/filename.tbz . Note the .tar.gz file extension has been replaced with the .tbz file extension, and the z flag with the j flag. Please note, however, that the f flag must go last due to an oddity with the way tar likes its options.

Additionally, the next few lines of code can be replaced:

tar czf /Users/User1/Archives/SQLDump.txt.tar.gz
echo "Removing Dump File"
rm /Users/User1/Archives/SQLDump.txt
Even after we change it like I said above, it still could use some pruning. Thusly:

bzip2 --best /Users/User1/Archives/SQLDump.txt
I think the second one has a certain elegance about it.


[ Reply to This | # ]