source: trunk/athena/etc/synctree/synctree.man @ 11280

Revision 11280, 4.0 KB checked in by ghudson, 27 years ago (diff)
Add -d flag to descend into an ignored directory.
  • Property svn:executable set to *
Line 
1.TH SYNCTREE 8 "May 6, 1988"
2.UC
3.SH NAME
4synctree \- reconcile directory tree with original
5.SH SYNOPSIS
6.B synctree
7[
8.B \-v | \-q
9] [
10.B \-n
11] [
12.B \-nosrcrules
13] [
14.B \-nodstrules
15] [
16.B \-s
17.I srcdir
18] [
19.B \-d
20.I dstdir
21] [
22.B \-a
23.I rules
24]
25.br
26.SH DESCRIPTION
27.I Synctree
28intelligently copies one directory tree to
29another, according to a set of rules files found in both the source and
30destination directory trees.
31.I synctree
32allows files to copied from the source to the destination, establish
33symbolic links on the destination tree, and allows commands to be
34executed when files are updated.
35
36.I synctree
37is useful for installing or updating systems, by reconciling the files
38on the destination system with the original.  Depending on the rules
39files, directories and files on the destination tree can be links to
40the original, allowing them to remain on a file server.  Synctree
41records what the modification times for files that it creates, so that
42it can tell if a file has been independently modified on the
43destination tree.
44
45.SH OPTIONS
46.TP
47.B \-v
48Verbose mode.  Prints debugging level information.  Each occurrence of
49this option increments the debugging level (and thus more will be
50displayed).  The default setting is 1, which prints all file updates
51that are transpiring.
52.TP
53.B \-q
54Quiet mode.  Does not inform user of what updates occur.
55.TP
56.B \-n
57No-op mode.  No updates or deletions will be performed.  This mode is
58useful for seeing what would occur, without causing any damage to the
59destination tree.
60.TP
61.B \-nosrcrules
62Rules files from the source tree are ignored.
63.TP
64.B \-nodstrules
65Rules files from the destination tree are ignored.
66.TP
67.B \-s
68Specifies the source directory tree.  The default is /server.
69.TP
70.B \-d
71Specifies the destination directory tree.  The default is /.
72.TP
73.B \-a
74Specifies a file containing additional rules to use.
75
76.SH RULES
77Rules for reconciling the source and destination trees can be found both
78in the source tree
79.BI (\.rconf) " and in the destination tree " (\.rconf\.local).
80These files (which may be in any sub-directory and apply to that
81directory downward) indicate the steps that should be taken to synctree
82the two directory trees.  The rules files are parsed top-down, with
83later actions in the rules files superceding earlier rules.
84.PP
85The available options in the rules files are:
86.TP
87.B map
88Map files from the source directory to the destination directory.
89.TP
90.B copy
91Copy files from the source directory to the destination directory.
92.TP
93.B link
94Create symbolic links from the destination directory to the source
95directory.
96.TP
97.B chase
98Copy files, chasing symbolic links, from the source directory to the
99destination directory.
100.TP
101.B ignore
102Do not perform any actions on the listed files.
103.TP
104.B delete
105Delete files from the destination directory.
106
107.PP
108The format of the majority of the actions is:
109.TP
110    <action> file [\-option \-option \.\.\.]
111.TP
112where file can be a wildcard expression.  Wildcard expressions consist
113of:
114.TP
115    *
116.TP
117    [range of letters]
118.TP
119and can be suffixed by a semi-colon, followed by the file type
120(r,l,d,b,c,s).
121
122.PP
123Some of the action-options available are:
124.TP
125.B copy \-p
126This mode will preserve owner, group, and setuid/setgid information
127during the copy.
128.TP
129.B copy/link \-f
130This mode will force a copy, regardless of whether the source and
131destination file types differ or the destination file was more recent
132than the source.
133.TP
134.B ignore \-d
135Normally, a directory is only descended into if it is copied or
136mapped.  This mode will cause an ignored directory to be descended
137into if the destination directory exists.
138
139.SH AUTHOR
140Tim Shepard,
141with some input from Mark Reinhold and Stan Zanarotti.
142Re-written by Richard Basch and Ezra Peisach, MIT Project Athena.
143.SH FILES
144.ta 3i
145.nf
146 .rconf                 Rules files on source directory tree
147 .rconf.local           Rules files on destination directory tree
148 .reconcile_dates.{dir,pag}     Database where file modification times are
149                                stored
150.fi
151.SH BUGS
152Synctree is still under development, and under documented.
Note: See TracBrowser for help on using the repository browser.