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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
lockfile?

-- 
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux