On 2019-04-03 22:16, LEROY TENNISON wrote: > Postgresql documentation lists the following as an archive command for > log shipping: > > archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p > /mnt/server/archivedir/%f' > > The problem is that it is very fragile. A more robust alternative is to use pg_receivewal. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services