Re: Feature Request: don't sync if it would result in more than NUM deletions.

2014-02-05 Thread Matthias Schniedermeyer
On 05.02.2014 13:00, Daniel Mare wrote: > As a safety feature, I would like to see a feature that would prevent rsync > from syncing when the sync, if it were to go ahead, would result in more than > a certain number of files being deleted from the destination. > > A similar feature, --max-delet

Re: Feature Request: don't sync if it would result in more than NUM deletions.

2014-02-04 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You could do a --dry-run with --max-deletes and check for exit code 25. Then only do the real run if not exit code 25. On 02/05/2014 12:00 AM, Daniel Mare wrote: > As a safety feature, I would like to see a feature that would > prevent rsync from syn

Feature Request: don't sync if it would result in more than NUM deletions.

2014-02-04 Thread Daniel Mare
As a safety feature, I would like to see a feature that would prevent rsync from syncing when the sync, if it were to go ahead, would result in more than a certain number of files being deleted from the destination. A similar feature, --max-delete, does exist, but does not prevent rsync from do