aboutsummaryrefslogtreecommitdiff
path: root/man/man1/yesterday.1
blob: 665c7b22134210760b9ff3dce27fe48df553dd8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.TH YESTERDAY 1
.SH NAME
yesterday \- print file names from the dump
.SH SYNOPSIS
.B yesterday
[
.B -cCd
] [
.B -n
.I daysago
] [
.I \-date
]
.I files ...
.SH DESCRIPTION
.I Yesterday
prints the names of the
.I files
from the most recent dump.
Since dumps are done early in the morning,
yesterday's files are really in today's dump.
For example, if today is February 11, 2003,
.IP
.EX
yesterday /home/am3/rsc/.profile
.EE
.PP
prints
.IP
.EX
/dump/am/2003/0211/home/am3/rsc/.profile
.EE
.PP
In fact, the implementation is to select the most recent dump in
the current year, so the dump selected may not be from today.
.PP
By default, 
.I yesterday
prints the names of the dump files corresponding to the named files.
The first set of options changes this behavior.
.TP
.B -c
Copy the dump files over the named files.
.TP
.B -C
Copy the dump files over the named files only when
they differ.
.TP
.B -d
Run 
.B diff
to compare the dump files with the named files.
.PP
The
.I date
option selects other day's dumps, with a format of
1, 2, 4, 6, or 8 digits of the form
.IR d,
.IR dd ,
.IR mmdd ,
.IR yymmdd ,
or
.IR yyyymmdd .
.PP
The
.B -n
option selects the dump
.I daysago
prior to the current day.
.PP
.I Yesterday
does not guarantee that the string it prints represents an existing file.
.SH EXAMPLES
.PP
See what's changed in the last week in your profile:
.IP
.EX
yesterday -d -n 7 ~/.profile
.EE
.PP
Restore your profile from yesterday:
.IP
.EX
yesterday -c ~/.profile
.EE
.SH FILES
.TF /dump
.B /dump
by convention, root of the dump file system
.PD
.SH SOURCE
.B \*9/bin/yesterday
.SH SEE ALSO
.IR diff (1),
.IR hist (1),
.IR vbackup (8)
.SH BUGS
It's hard to use this command without singing.