Project

General

Profile

Actions

User story #2066

closed

CFEngine should use a file repository to store all backup copies of edited/copied files

Added by Jonathan CLARKE about 13 years ago. Updated over 9 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Web - Config management
Target version:
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

Also available in: Atom PDF