If only this was CFengine! I would have a really elegant solution to my problem. Many programs could change this file. I think im off to write something in kernel maybe.... Oh good.
Sent from my iPhone > On 24 Sep 2014, at 15:43, Nahum Shalman <[email protected]> wrote: > >> On 09/23/2014 07:15 PM, Khushil Dep via smartos-discuss (Personal) wrote: >> It’s not the same file set each time. I’m trying to find an elegant solution >> to snapshotting files on change. > > What's changing the files? If it's something like cfengine, shouldn't that > tool provide a means to back up the file it's modifying? (I'm pretty sure > that's what puppet does...) > > Ideally the tool that's doing the modifying should store off a copy of the > old file. > You could use something like etckeeper[1] to track changing files in git (or > just use git directly....) > > But ultimately you either need cooperation from the tool that is changing the > files, or you need to be regularly snapshotting the file system, monitoring > all the files you care about for changes, and when a file gets changed you > can copy out the previous version from a snapshot into the place where you > want to keep the old versions... > > Or maybe there's a better way someone smarter than I am will suggest... > > -Nahum > > [1] https://joeyh.name/code/etckeeper/ > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
