[chef] how would I do automatic compressing and archiving of old files via chef


Chronological Thread 
  • From: Stephen Corbesero < >
  • To: "' '" < >
  • Subject: [chef] how would I do automatic compressing and archiving of old files via chef
  • Date: Thu, 16 Jan 2014 10:15:56 -0500
  • Accept-language: en-US
  • Acceptlanguage: en-US

I used to have some CFEngine rules that would look for old files and compress them in place.  A subsequent rule would look for these compressed files and, if they were older still, would move them to an archive directory.  A final rule would erase the compressed, archived files if they became very old.

 

With CFEngine, I could have rules that only did this once a day, using something like a .Hour01 class on a statement inside of its files section.

 

Is there a straightforward way of doing this ala Chef?  I could create a set of code blocks or put cron jobs on the systems, but I am wondering if there is a solution similar to CFEngine’s approach.

 

 

--

Stephen Corbesero, Performance Engineer

Synchronoss - Mobile Innovation for a Connected World

| www.synchronoss.com

 




Archive powered by MHonArc 2.6.16.

§