Ask Your Question

Is there a way to specify how many different version of the files to backup?

asked 2015-08-21 11:46:31 -0500

dannythk gravatar image

I am trying to utilize the "backup" options in the "file" resource type. It seems like it only backup one deep only. Is there a way that it could archive the old one with like a time stamped?

I went into the filebucket (/var/opt/lib/pe-puppet/bucket/), I only notice the checksum of the one previous version of the file. Is there an easy way to find the list of checksum versions of a file?

I am happy to have either one resolve. I just want to be able to locate a history of the file modify by Puppet.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-23 05:46:12 -0500

interesting question - I don't believe you can do this without some messing about - however I dont believe you should do this..

puppet is used to reach a defined state - not to do roll backs.. filebucket is there as an emergency backup in a way - i.e. if you're tests haven't spotted a mistake and you've released bad code thats caused an issue - you can quickly revert this.

To get what you what I think its best to look in another way - i.e. have your code under source code control e.g. git - so the history of changes you make is there - this would be a much better way - also means you dont have x-thousand copies of files on x-thousand servers wasting space and becoming hard to manage,

cheers Stuart

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-08-21 11:46:31 -0500

Seen: 131 times

Last updated: Aug 23 '15