Getting rsync to store timing information in its logs
ewilen at mprinc.com
Tue Jul 27 17:53:06 MDT 2010
My method, which may be primitive, is to call "date" immediately before and after running. Something like:
20 22 * * * date >> /var/log/mysync.log; rsync -av foo bar >> /var/log/mysync.log; date >> /var/log/mysync.log
Sorry, can't help with the bandwidth question.
On Jul 27, 2010, at 4:06 PM, Rahul Nabar wrote:
> Is there a way to know from the rsync logs how long it took to do a backup?
> The only timing info,. I see is this at the end:
> sent 3067328 bytes received 7853035429 bytes 1187888.83 bytes/sec
> total size is 1559866450336 speedup is 198.55
> Can I use it to figure out how long the operation took?
> Does the above mean it took 2.5 secs of send time and 1.8 hours of
> recieve time so (roughly) the operation lasted around 110 minutes? Or
> is this a bad way of estimation.
> I know from my cron job as to when it started but I want some way of
> knowing how long it was running.
> 20 22 * * * rsync -av --exclude='*txt.slave*' --delete
> root at polaris::polhome /polhome/ > /var/log/rsync/rsync.log
> Also, the bytes/sec figure has me confused. It seems to convert to
> about 1.13 GB/sec. But I know that my ethernet connection is only at 1
> Gbps maximum. How is the bytes/sec figure computed then?
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: (510) 849-4942
Fax: (510) 849-0794
More information about the rsync