plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

yesterday.1 (1700B)


      1 .TH YESTERDAY 1
      2 .SH NAME
      3 yesterday \- print file names from the dump
      4 .SH SYNOPSIS
      5 .B yesterday
      6 [
      7 .B -cCd
      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 February 11, 2003,
     23 .IP
     24 .EX
     25 yesterday /home/am3/rsc/.profile
     26 .EE
     27 .PP
     28 prints
     29 .IP
     30 .EX
     31 /dump/am/2003/0211/home/am3/rsc/.profile
     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 By default, 
     38 .I yesterday
     39 prints the names of the dump files corresponding to the named files.
     40 The first set of options changes this behavior.
     41 .TP
     42 .B -c
     43 Copy the dump files over the named files.
     44 .TP
     45 .B -C
     46 Copy the dump files over the named files only when
     47 they differ.
     48 .TP
     49 .B -d
     50 Run 
     51 .B diff
     52 to compare the dump files with the named files.
     53 .PP
     54 The
     55 .I date
     56 option selects other day's dumps, with a format of
     57 1, 2, 4, 6, or 8 digits of the form
     58 .IR d,
     59 .IR dd ,
     60 .IR mmdd ,
     61 .IR yymmdd ,
     62 or
     63 .IR yyyymmdd .
     64 .PP
     65 The
     66 .B -n
     67 option selects the dump
     68 .I daysago
     69 prior to the current day.
     70 .PP
     71 .I Yesterday
     72 does not guarantee that the string it prints represents an existing file.
     73 .SH EXAMPLES
     74 .PP
     75 See what's changed in the last week in your profile:
     76 .IP
     77 .EX
     78 yesterday -d -n 7 ~/.profile
     79 .EE
     80 .PP
     81 Restore your profile from yesterday:
     82 .IP
     83 .EX
     84 yesterday -c ~/.profile
     85 .EE
     86 .SH FILES
     87 .TF /dump
     88 .B /dump
     89 by convention, root of the dump file system
     90 .PD
     91 .SH SOURCE
     92 .B \*9/bin/yesterday
     93 .SH SEE ALSO
     94 .MR diff (1) ,
     95 .MR hist (1) ,
     96 .MR vbackup (8)
     97 .SH BUGS
     98 It's hard to use this command without singing.