⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 synctree.1

📁 操作系统设计与实现源码
💻 1
字号:
.TH SYNCTREE 1.SH NAMEsynctree \- synchronize directory trees..SH SYNOPSIS.nf\fBsynctree\fP [\fB\-iuf\fP] [[\fIuser1\fP@]\fImachine1\fP:]\fIdir1\fP [[\fIuser2\fP@]\fImachine2\fP:]\fIdir2\fP.fi.SH DESCRIPTION.B Synctreesynchronizes the directory tree rooted at \fIdir2\fP with \fIdir1\fP. Itwalks recursively through both trees, and deletes and adds files in\fIdir2\fP to make it equal to \fIdir1\fP. Mode, owner and group are set foreach file unless the \fB\-u\fP flag is given. In its normal mode of operation,synctree will ask if it may delete or add directories assuming that you don'twant to. Non-directories are simply deleted or added, but synctree will ask ifit needs to update a normal file with a default answer of 'y'. Simply typingreturn will choose the default answer, typing end-of-file is like typingreturn to this question and all other questions..PPYou can specify a hostname and user-id to be used to access \fIdir1\fP or\fIdir2\fP.  Synctree will use \fBrsh\fP(1) to run a copy of itself onthe remote machine.  The call interface mimics that of \fBrcp\fP(1), butyou can use more than one user@machine prefix if you want to make thingsreally interesting..PPHard links are enforced, an update is done by first deleting the old fileso that links to unknown files are broken.  Links to files within \fIdir2\fPwill be restored..PPIf either directory contains the file \fB.backup\fP, then this file willbe used as an alternate inode table.  This allows one to make a backup copyof a file tree full of special files and differing user-ids on a remotemachine under an unpriviledged user-id..PP.SH OPTIONS.TP 5.B \-iAsk for permission (with default answer 'n') to delete oradd any file or directory..TP 5.B \-uOnly install newer files, i.e. merge the directory trees..TP 5.B \-fDon't ask, think 'yes' on any question..SH "SEE ALSO".BR remsync (1),.BR cpdir (1),.BR rsh (1),.BR rcp (1),.BR perror (3)..SH DIAGNOSTICSMessages may come from three different processes.  One named "Slave" runningin \fIdir1\fP, one named "Master" running in \fIdir2\fP, and synctree itselfin a mediator role.  The mediator will also perform the task of either themaster or the slave if one of them is running locally.  You need to know thisto interpret the error messages coming from one of these processes.  Themessages are normally based on \fBperror\fP(3).  Failure to contact a remotemachine will be reported by \fBrsh\fP.  \fBSynctree\fP should have a zeroexit status if no errors have been encountered..SH BUGSDirectory \fIdir2\fP will be created without asking..PPThe master and slave processes get their error output mixed up sometimes(nice puzzle)..PPThe local and remote machine must use the same file type encoding..PPThe link replacement strategy may lead to lack of space on a small device.Let \fBsynctree\fP run to completion and then rerun it to pick up the pieces..PPLetting the local process keep its "synctree" name may be a mistake..PPIt talks too much..SH AUTHORKees J. Bot, (kjb@cs.vu.nl)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -