Forum: Cfengine Help
Subject: Re: copy file from A to B only if it is not present in C
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21342,21355#msg-21355

Option 1:

Copy master to first backup with purge.
Copy first backup to second backup without purge.

This way the last copy always has everything since nothing is purged.  This 
protects from accidental deletion.  I would not bother with making the second 
promise dependent upon the first.  On their own the promises are convergent.

Option 2:

I backup all of my files to a Subversion server.  This way I have history and 
can never permanently delete anything.  Regular check-ins are automated.  
Cfengine could do this via a command promise.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to