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? -- Rahul
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 > 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? > > -- > 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.htmlElliot 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
> 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.55The latest alpha release of LBackup supports new configuration options allowing the time required for various backup related operations to be reported. One such option is enable human readable reporting on the timing of the snapshot generation. Quoted below is an example of the output from the latest alpha release.> total size is 106717731958 speedup is 831.04 > Time required for snapshot generation : 0 days, 0 hours, 20 minutes, 17 secondsThe current granularity of the timing system mentioned above is 1 second. LBackup is using the the 'date' command to calculate timing. If you are using the shell to measure the time required and you require increased granularity with simplicity, then I would recommend the use of the 'time' command. A majority of this post is from the following LBackup discussion thread : http://tinyurl.com/lbackup-discussion-human-read Finally, I believe that 118788 bytes/sec is approximately 1.2 MB/sec Hope this helps. ---------------------------------- This email is protected by LBackup http://www.lbackup.org
On Tue 27 Jul 2010, Rahul Nabar wrote:> > The only timing info,. I see is this at the end: > > sent 3067328 bytes received 7853035429 bytes 1187888.83 bytes/sec> 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 1You're off by 1000. It's 1.19MB/s (1.13MiB/s). Check your calculator :-) Paul