Subject: time stamps on dump time to complete estimates?
To: None <current-users@netbsd.org>
From: Brett Lymn <blymn@baesystems.com.au>
List: current-users
Date: 08/23/2001 22:07:09
Folks,
        Ever since I have been using dump as my backup tool (more
years than I care to remember) it has always annoyed me that the dump
estimate to completion has not been time stamped so unless you stare
at the damn console when the dump is happening you will not be able to
work out _when_ the dump will finish (roughly), this is most annoying
in the wee hours of the morning when all you want to do is go home
(dammit!!).  To this end, I modified dump so that it prints a time
stamp for each completion estimate.  I included the seconds in the
timestamp but they look to be unnecessary.  The time printed is the
time of the time stamp, another option would be to print the time of
completion, something along the lines of:

  DUMP: 3.07% done, finished in 2:37 (22:18)

Where the numbers in brackets are the estimated finishing time.  I am
not fussed either way, printing the time of the estimate or the
estimated end time - either would be handy to have.... thoughts?


bash-2.03# ./dump 0sf 1000000 /dev/null /
  DUMP: Date of this level 0 dump: Thu Aug 23 19:35:24 2001
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rwd0a (/) to /dev/null
  DUMP: Label: none
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 4735507 tape blocks on 0.06 tape(s).
  DUMP: Volume 1 started at: Thu Aug 23 19:36:58 2001
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: [19:41:58] 3.07% done, finished in 2:37
  DUMP: [19:46:58] 11.51% done, finished in 1:16
  DUMP: [19:51:58] 19.83% done, finished in 1:00
  DUMP: [19:56:58] 27.07% done, finished in 0:53
  DUMP: [20:01:58] 34.41% done, finished in 0:47
  DUMP: [20:06:58] 43.46% done, finished in 0:39
  DUMP: [20:11:58] 52.38% done, finished in 0:31
  DUMP: [20:16:58] 61.69% done, finished in 0:24
  DUMP: [20:21:58] 70.58% done, finished in 0:18
  DUMP: [20:26:58] 79.38% done, finished in 0:12
  DUMP: [20:31:58] 88.93% done, finished in 0:06
  DUMP: [20:36:58] 97.27% done, finished in 0:01
  DUMP: 4737585 tape blocks on 1 volume
  DUMP: Volume 1 completed at: Thu Aug 23 20:39:14 2001
  DUMP: Volume 1 took 1:02:16
  DUMP: Volume 1 transfer rate: 1268 KB/s
  DUMP: Date of this level 0 dump: Thu Aug 23 19:35:24 2001
  DUMP: Date this dump completed:  Thu Aug 23 20:39:14 2001
  DUMP: Average transfer rate: 1268 KB/s
  DUMP: Closing /dev/null
  DUMP: DUMP IS DONE

-- 
===============================================================================
Brett Lymn, Computer Systems Administrator, BAE SYSTEMS
===============================================================================