Being VERY careful while using the --delete option

Wayne Davison wayned at
Fri May 13 18:15:29 MDT 2011

On Tue, May 10, 2011 at 7:51 AM, Ted Gilchrist <egilchri at> wrote:
> However, I wake up in a cold sweat worrying about supplying the empty string for source_dir, and thus removing souce_dir, and all it's siblings on target_machine.

Your best bet is to error-check your args in your script prior to
calling rsync.  Compare for dangerous things, like an empty string (or
"/"), etc.


More information about the rsync mailing list