Being VERY careful while using the --delete option
wayned at samba.org
Fri May 13 18:15:29 MDT 2011
On Tue, May 10, 2011 at 7:51 AM, Ted Gilchrist <egilchri at gmail.com> 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
More information about the rsync