source: trunk/minix/man/man1/synctree.1@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 3.0 KB
RevLine 
[9]1.TH SYNCTREE 1
2.SH NAME
3synctree \- synchronize directory trees.
4.SH SYNOPSIS
5.nf
6\fBsynctree\fP [\fB\-iuf\fP] [[\fIuser1\fP@]\fImachine1\fP:]\fIdir1\fP [[\fIuser2\fP@]\fImachine2\fP:]\fIdir2\fP
7.fi
8.SH DESCRIPTION
9.B Synctree
10synchronizes the directory tree rooted at \fIdir2\fP with \fIdir1\fP. It
11walks recursively through both trees, and deletes and adds files in
12\fIdir2\fP to make it equal to \fIdir1\fP. Mode, owner and group are set for
13each file unless the \fB\-u\fP flag is given. In its normal mode of operation,
14synctree will ask if it may delete or add directories assuming that you don't
15want to. Non-directories are simply deleted or added, but synctree will ask if
16it needs to update a normal file with a default answer of 'y'. Simply typing
17return will choose the default answer, typing end-of-file is like typing
18return to this question and all other questions.
19.PP
20You can specify a hostname and user-id to be used to access \fIdir1\fP or
21\fIdir2\fP. Synctree will use \fBrsh\fP(1) to run a copy of itself on
22the remote machine. The call interface mimics that of \fBrcp\fP(1), but
23you can use more than one user@machine prefix if you want to make things
24really interesting.
25.PP
26Hard links are enforced, an update is done by first deleting the old file
27so that links to unknown files are broken. Links to files within \fIdir2\fP
28will be restored.
29.PP
30If either directory contains the file \fB.backup\fP, then this file will
31be used as an alternate inode table. This allows one to make a backup copy
32of a file tree full of special files and differing user-ids on a remote
33machine under an unpriviledged user-id.
34.PP
35.SH OPTIONS
36.TP 5
37.B \-i
38Ask for permission (with default answer 'n') to delete or
39add any file or directory.
40.TP 5
41.B \-u
42Only install newer files, i.e. merge the directory trees.
43.TP 5
44.B \-f
45Don't ask, think 'yes' on any question.
46.SH "SEE ALSO"
47.BR remsync (1),
48.BR cpdir (1),
49.BR rsh (1),
50.BR rcp (1),
51.BR perror (3).
52.SH DIAGNOSTICS
53Messages may come from three different processes. One named "Slave" running
54in \fIdir1\fP, one named "Master" running in \fIdir2\fP, and synctree itself
55in a mediator role. The mediator will also perform the task of either the
56master or the slave if one of them is running locally. You need to know this
57to interpret the error messages coming from one of these processes. The
58messages are normally based on \fBperror\fP(3). Failure to contact a remote
59machine will be reported by \fBrsh\fP. \fBSynctree\fP should have a zero
60exit status if no errors have been encountered.
61.SH BUGS
62Directory \fIdir2\fP will be created without asking.
63.PP
64The master and slave processes get their error output mixed up sometimes
65(nice puzzle).
66.PP
67The local and remote machine must use the same file type encoding.
68.PP
69The link replacement strategy may lead to lack of space on a small device.
70Let \fBsynctree\fP run to completion and then rerun it to pick up the pieces.
71.PP
72Letting the local process keep its "synctree" name may be a mistake.
73.PP
74It talks too much.
75.SH AUTHOR
76Kees J. Bot, (kjb@cs.vu.nl)
Note: See TracBrowser for help on using the repository browser.