dirsync(1) - Linux man page
Name
dirsync - Directory Synchronizer
Synopsis
dirsync [-h] [-v level ] [-q] [-X dir ] [-x file ] [-r] [-b size ] [-m mode ] [-V] [-T format ] [-D format ] [-l file ] source dest
Description
DirSync is a Directory Synchronizer. This utility takes two arguments: the source and destination directory, and makes recursively the two directories identical.
Options
-h Display a short message help.
- -v level
- 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.
- -b size
- Set the buffer size used for the copy. Default 65536 for MSDOS or 1048576.
- -m mode
- 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.
- 0 - Copy if have different size or date. (Default)
- -r Don't remove files/directories missed in the source.
- -T format
- Set the date and time format (in strftime style).
- -D format
- Set the date format (in strftime style).
- -l file
- 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
- duplicating symlink).
(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.
Reporting Bugs
Report bugs to <mario@viara.cn>.
See Also
The latest version can be downloaded from http://www.viara.cn/en/dirsync.htm
Author
Mario Viara