dirsync − Directory Synchronizer
dirsync [-h] [-v level ] [-q] [-X dir ] [-x file ] [-r] [-b size ] [-m mode ] [-V] [-T format ] [-D format ] [-l file ] source dest
DirSync is a Directory Synchronizer. This utility takes two arguments: the source and destination directory, and makes recursively the two directories identical.
Display a short message help.
Specify the verbosity level (default 0).
−q Quiet mode (the
same effect of -v 0).
−e regex (1)
Exclude files and directory matched by the regular expression. For more information about pattern matching see "Henry Spencer’s regular expression library"
−V Read after
write. Verify copied data.
−X name (1)
Exclude the directory named name.
−x name (1)
Exclude the file named name.
Set the buffer size used for the copy. Default 65536 for MSDOS or 1048576.
Set file copy mode:
0 - Copy if have different size or date. (Default)
1 - Copy if the destination is older than source.
2 - Show only the difference.
remove files/directories missed in the source.
Set the date and time format (in strftime style).
Set the date format (in strftime style).
Log the operation in the specified file. If file is - the filename will be the current date formatted (see -D). Any line of the log have the date and time in the current time and date format (see -T).
−L Follow symlinks (copy contents of the file instead of
(1) If name starts with @ the remaining characters will be used as a file name. The file must contain space separated word used in sequence for the option.
Report bugs to <firstname.lastname@example.org>.
The latest version can be downloaded from http://www.viara.cn/en/dirsync.htm