Chris's Wiki :: blog/sysadmin/DeleteObsoleteFiles Commentshttps://utcc.utoronto.ca/~cks/space/blog/sysadmin/DeleteObsoleteFiles?atomcommentsDWiki2009-10-10T19:00:08ZRecent comments in Chris's Wiki :: blog/sysadmin/DeleteObsoleteFiles.By Chris Siebenmann on /blog/sysadmin/DeleteObsoleteFilestag:CSpace:blog/sysadmin/DeleteObsoleteFiles:1b593fee0fe9bef4d30fbd9558ebee837dc9cc5cChris Siebenmann<div class="wikitext"><p>I think there's two things here: preserving old scripts and preserving
the files they generate. This is a sensible approach for preserving old
scripts, but I'd argue that it's not a sensible way of preserving old
files that they generate; if you turn out to really need the file you
want to start running the script again, not restore an old version of
the file.</p>
</div>2009-10-10T19:00:08ZFrom 71.56.27.251 on /blog/sysadmin/DeleteObsoleteFilestag:CSpace:blog/sysadmin/DeleteObsoleteFiles:d2cfb26d4c45af365061c9eedf3395374a0b002aFrom 71.56.27.251<div class="wikitext">
<p>I use a similar approach, though it's a bit more forgiving than deleting the file:</p>
<p>mv scriptnouses scriptnouses.${REMOVAL_DATE}.REMOVEME</p>
<p>Periodically I will scan the pertinent directories for REMOVEME files, and rm those files if they are older than REMOVAL_DATE (I usually set this is something like todays date + 90 days). If someone screams because something broke, I can then quickly revert back to the old version via cp / mv. If no one yells, I can go ahead and remove it.</p>
<p>- Ryan</p>
</div>2009-10-10T15:48:25Z