On 11/10/2015 03:38 PM, J Martin Rushton wrote:> That's plain bad system analysis. Read the start date, record the > current date and THEN start processing. You will get the odd extra > file but will not loose any.That's my point. "find" doesn't do that and na?ve implementations of the original suggestion are likely to do work poorly. For no reason. Just don't use "find" to feed rsync a list of files to sync. It's not more efficient, it might miss files, it won't sync deleted files, etc etc. rsync is designed to synchronize two directory trees. It doesn't need external helpers (except for a pipe, like ssh).
On Wed, Nov 11, 2015 at 5:39 AM, Gordon Messmer <gordon.messmer at gmail.com> wrote:> On 11/10/2015 03:38 PM, J Martin Rushton wrote: >> >> That's plain bad system analysis. Read the start date, record the >> current date and THEN start processing. You will get the odd extra >> file but will not loose any. > > > That's my point. "find" doesn't do that and na?ve implementations of the > original suggestion are likely to do work poorly.<.... snip ...> A good systems analysis is a must in whatever one does. Be it system admin, software developer, accountant, lawyer etc. My suggestion about using "find" was in response to OP's question/clarification on incremental/differential backup and I assumed due diligence with respective to designing the script. <quote> how to perform a differential backup using rsync? On web there is a great confusion about diff backup concept when searched with rsync. </quote> rsync will do incremental backup as already discussed earlier in this thread. Please suggest how to achieve a differential backup with rsync (the original query). Thanks, -- Arun Khan
On 11/10/2015 11:27 PM, Arun Khan wrote:> rsync will do incremental backup as already discussed earlier in this thread. > > Please suggest how to achieve a differential backup with rsync (the > original query).Already answered. Under rsync based backup systems like rsnapshot, every backup is a full backup. Therefore, incremental and differential backups are the same thing. As you already understand that rsync will do incremental backups without using find, you also understand that it will do differential backups without using find.