Hi all,<br><br>In my "Brash" shell script, I want to compress the files into an archive to save space.  What I am curious about is the best approach to this.  I see at least 2 options:<br><> compress each file or set of files at the time the user tosses them into the trash (1 compressed archive for each time files are tossed)<br>
<> create an archive on the initial toss action, and append future files to the one archive<br><br>From a "safety" standpoint, it seems best to create a new archive for each time the user tosses files into the trash:<br>
<> Don't put all the eggs in one basket - if one archive is somehow lost, the remaining archives should remain (apart from the user emptying the trash)<br><> Avoids one monolithic archive<br><br>Ok, nothing prevents the files being deleted when the user empties the trash.  They *will* be gone, recoverable only by forensics tools.  Even so, I lost a lot of data once when I created a monolithic archive and copied to a CD-ROM.  When I later tried to open it, gzip basically just churned away - never actually opening my files.  I had help from various lists (I think this one included) and still never recovered my files.  I have not forgotten that.<br clear="all">
<br>Anyway, just curious as to whether anyone else sees something I should think about.  I am considering combining tar and bzip.  Tar will let one view a list of files in an archive - something that will be useful when the user wants to see what is in the trash.<br>
<br>Thoughts?<br>Don<br>-- <br>D.C. Parris, FMP, ESL Certificate<br>Minister, Security/FM Coordinator, Free Software Advocate<div><a href="https://www.xing.com/profile/Don_Parris" target="_blank">https://www.xing.com/profile/Don_Parris</a>  |  <a href="http://www.linkedin.com/in/dcparris" target="_blank">http://www.linkedin.com/in/dcparris</a></div>
<div>GPG Key ID: F5E179BE</div><br>