yesterday 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. .TH YESTERDAY 1
  2. .SH NAME
  3. yesterday \- print file names from the dump
  4. .SH SYNOPSIS
  5. .B yesterday
  6. [
  7. .B -abcCdDs
  8. ] [
  9. .B -n
  10. .I daysago
  11. ] [
  12. .I \-date
  13. ]
  14. .I files ...
  15. .SH DESCRIPTION
  16. .I Yesterday
  17. prints the names of the
  18. .I files
  19. from the most recent dump.
  20. Since dumps are done early in the morning,
  21. yesterday's files are really in today's dump.
  22. For example, if today is March 17, 1992,
  23. .IP
  24. .EX
  25. yesterday /adm/users
  26. .EE
  27. .PP
  28. prints
  29. .IP
  30. .EX
  31. /n/dump/1992/0317/adm/users
  32. .EE
  33. .PP
  34. In fact, the implementation is to select the most recent dump in
  35. the current year, so the dump selected may not be from today.
  36. .PP
  37. When presented with a path of the form
  38. .BI /n/ fs / path \fR,
  39. .I yesterday
  40. will look for
  41. dump files of the form
  42. .BI /n/ fs dump/ yyyy / hhmm / path \fR.
  43. .PP
  44. By default,
  45. .I yesterday
  46. prints the names of the dump files corresponding to the named files.
  47. The first set of options changes this behavior.
  48. .TP
  49. .B -a
  50. Run
  51. .IR acme (1)'s
  52. .I adiff
  53. to compare the dump files with the named files.
  54. .TP
  55. .B -b
  56. Bind the dump files over the named files.
  57. .TP
  58. .B -c
  59. Copy the dump files over the named files.
  60. .TP
  61. .B -C
  62. Copy the dump files over the named files only when
  63. they differ.
  64. .TP
  65. .B -d
  66. Run
  67. .B diff
  68. to compare the dump files with the named files.
  69. .TP
  70. .B -D
  71. Run
  72. .B diff
  73. .B -n
  74. to compare the dump files with the named files.
  75. .PP
  76. The
  77. .I date
  78. option selects other day's dumps, with a format of
  79. 1, 2, 4, 6, or 8 digits of the form
  80. .IR d,
  81. .IR dd ,
  82. .IR mmdd ,
  83. .IR yymmdd ,
  84. or
  85. .IR yyyymmdd .
  86. .PP
  87. The
  88. .B -n
  89. option selects the dump
  90. .I daysago
  91. prior to the current day.
  92. .PP
  93. The
  94. .B -s
  95. option selects the most recent snapshot instead of the most
  96. recent archived dump. Snapshots may occur more frequently
  97. than dumps.
  98. .PP
  99. .I Yesterday
  100. does not guarantee that the string it prints represents an existing file.
  101. .SH EXAMPLES
  102. .PP
  103. Back up to yesterday's MIPS binary of
  104. .BR vc :
  105. .IP
  106. .EX
  107. yesterday -c /mips/bin/vc
  108. .EE
  109. .PP
  110. Temporarily back up to March 1's MIPS C library to see if a program
  111. runs correctly when loaded with it:
  112. .IP
  113. .EX
  114. yesterday -b -0301 /mips/lib/libc.a
  115. rm v.out
  116. mk
  117. v.out
  118. .EE
  119. .PP
  120. Find what has changed in the C library since March 1:
  121. .IP
  122. .EX
  123. yesterday -d -0301 /sys/src/libc/port/*.c
  124. .EE
  125. .SH FILES
  126. .B /n/dump
  127. .SH SOURCE
  128. .B /rc/bin/yesterday
  129. .SH SEE ALSO
  130. .IR history (1),
  131. .IR bind (1),
  132. .IR diff (1),
  133. .IR fs (4).
  134. .SH BUGS
  135. It's hard to use this command without singing.