On Sep29, 2011, at 17:44 , Linas Virbalas wrote: >> I also checked what rsync does when a file vanishes after rsync computed the >> file list, but before it is sent. rsync 3.0.7 on OSX, at least, complains >> loudly, and doesn't sync the file. It BTW also exits non-zero, with a special >> exit code for precisely that failure case. > > To be precise, my script has logic to accept the exit code 24, just as > stated in PG manual: > > Docs> For example, some versions of rsync return a separate exit code for > Docs> "vanished source files", and you can write a driver script to accept > Docs> this exit code as a non-error case.
Oh, cool. I was about to suggest that we add something along these lines to the docs - guess I should RTFM from time to time ;-) best regards, Florian Pflug > > -- > Sincerely, > Linas Virbalas > http://flyingclusters.blogspot.com/ > > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers