[PATCH] Ensure that rsync backups are only running one at a time

Jesse Keating jkeating at redhat.com
Wed Mar 24 16:18:18 UTC 2010

On Wed, 2010-03-24 at 10:54 -0500, Mike McGrath wrote:
>  # Sync out
>  for host in db01 db02 db03; do
> +    # Sleep if any other rsyncs are already
> +    while ssh $host "pgrep rsync" | grep -q [0-9]; do sleep 10; done 

Seems like a pretty wide net, what if somebody is rsyncing something
else to/from that box?  Would it not be better to make use of a

Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20100324/3fc91a23/attachment.bin 

More information about the infrastructure mailing list