Actions
User story #2066
closedCFEngine should use a file repository to store all backup copies of edited/copied files
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
Description
See http://cfengine.com/manuals/cf3-reference.html#default_005frepository-in-agent. We should set this by default in our policy, to use /var/rudder/modified-files.
To make this the most efficient possible, please also check that our copy_from and edit_defaults bodies have copy_backup and edit_backup set to "timestamp" ( not just "true" ). See http://cfengine.com/manuals/cf3-reference.html#edit_005fdefaults-in-files.
This combination will cause any files that are edited to first be saved - for example, if modifying /etc/sudoers today, the original will be saved in something like /var/rudder/modified-files/_etc_sudoers.cfsaved.20111122134500.
Actions