>
>
> I don't believe there is any better way than the two you have suggested:
> run and delete if there were no changes, or check first with -n.  Note
> that with the first approach, you don't need a separate diff command;
> you can just use -i and check whether the itemize output is nonempty.
>
> Matt
>
>
I see, something like this to remove an equivalent backup after rsync
completes:

rsync -ai --link-dest=../backup.previous/  source/ backup.next/ | grep -qv
'^cd+++++++++' || rm -r backup.next/

Similar to reading --stats to clean up or run again without -n.  Likewise it
will miss empty directory changes (created or removed), but that's really
not a problem for me.

Thanks for taking the time to consider it and the suggestions.
~ Daniel
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to