Rahul, 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. Regards, Elliot Wilen 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 > r...@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? > > -- > Rahul > -- > 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 Elliot Wilen Network Administrator/Postmaster MPR Associates, Inc. 2150 Shattuck Ave., Suite 800 Berkeley, CA 94704 Phone: (510) 849-4942 Fax: (510) 849-0794 www.mprinc.com -- 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
