rsync mirror solution: how to prevent accidental mirror deletion

Rahul Nabar rpnabar at gmail.com
Fri Jul 30 15:43:42 MDT 2010


On Thu, Jul 29, 2010 at 8:31 PM, Matt McCutchen <matt at mattmccutchen.net> wrote:
>
> If you can arrange for the source directory to appear nonexistent rather
> than empty in the event of a disk failure, rsync would exit with code 23
> instead of cleaning out the destination.  One hacky way to do that would
> be to put a symlink "me -> ." in the source directory and specify the
> source as root at production_server::home/me/ .

Thanks! That's a great idea. I'll do that. It probably won't have much
performance implications.

-- 
Rahul


More information about the rsync mailing list