Yeah if implemented, it shouldn't be enabled by default, but there are lots of cases where tidy is used to clean up unnecessary config files; it would be fantastic if those targeted deletions could be flagged to use the repository so that a timestamped backup copy of the deleted files are saved before the file(s) are deleted.
As you mentioned, a copy followed by tidy would achieve the same thing, and I believe in cf3 you could add something to the standard library that combines the two, rather than implementing a whole new bit of functionality. The downside to that would be the filename of the backup file -- how do you write the promise so that it is able to keep multiple backups over time, the way the cf2 repository does? Paul Krizak 7171 Southwest Pkwy MS B200.3A MTS Systems Engineer Austin, TX 78735 Advanced Micro Devices Desk: (512) 602-8775 Linux/Unix Systems Engineering Cell: (512) 791-0686 Global IT Infrastructure Fax: (512) 602-0468 On 05/03/2011 07:47 AM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: [CF2] Saving backup copies of tidied files? > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,21734,21754#msg-21754 > > A move feature might be a nice addition. If others express interest I'll > open a feature request. > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine