|
12 | 12 | .Nm |
13 | 13 | .Op Fl C |
14 | 14 | .Op Fl v Ns Op Cm v Ns Op Cm v |
| 15 | +.Op Fl c |
15 | 16 | .Op Fl d |
16 | 17 | .Op Fl n |
17 | 18 | .Op Fl u |
@@ -73,6 +74,27 @@ modifications made to the destination. |
73 | 74 | .Fl vvv |
74 | 75 | will cause all files and directories to be reported whether or not |
75 | 76 | modifications are made. |
| 77 | +.It Fl c Ar digest |
| 78 | +Generate and maintain a checksum file using the specified message |
| 79 | +.Ar digest |
| 80 | +called |
| 81 | +.Pa \&.DIGEST.CHECKSUMS |
| 82 | +in each directory on the source where |
| 83 | +.Pa DIGEST |
| 84 | +is replaced by the upperscale name of the message digest used. |
| 85 | +An alternate file name may be specified with the |
| 86 | +.Fl M Ar file |
| 87 | +option. Supported are all localy available OpenSSL |
| 88 | +.Xr EVP 7 |
| 89 | +message digests, e.g. md5, rmd160, sha1, sha256 or sha512. |
| 90 | +A checksum check is done on each file of the destination when the destination |
| 91 | +appears to be the same as the source. If the check fails, |
| 92 | +the source is recopied to the destination. When you specify a destination |
| 93 | +directory, the checksum file is only updated as needed and may not be updated |
| 94 | +even if modifications are made to a source file. If you do not specify a |
| 95 | +destination directory the |
| 96 | +.Nm |
| 97 | +command forcefully regenerates the checksum for every file in the source. |
76 | 98 | .It Fl d |
77 | 99 | Print directories as they are being traversed. |
78 | 100 | Useful to watch the progress; |
@@ -120,21 +142,14 @@ Quiet operation. |
120 | 142 | .It Fl o |
121 | 143 | Do not remove any files, just overwrite/add. |
122 | 144 | .It Fl m |
123 | | -Generate and maintain a MD5 checkfile called |
124 | | -.Pa \&.MD5.CHECKSUMS |
125 | | -in each directory on the source |
126 | | -and do an MD5 check on each file of the destination when the destination |
127 | | -appears to be the same as the source. If the check fails, |
128 | | -the source is recopied to the destination. When you specify a destination |
129 | | -directory, the MD5 checkfile is only updated as needed and may not be updated |
130 | | -even if modifications are made to a source file. If you do not specify a |
131 | | -destination directory the |
132 | | -.Nm |
133 | | -command forcefully regenerates the MD5 checkfile for every file in the source. |
134 | | -.It Fl M Ar file |
135 | 145 | Works the same as |
136 | | -.Fl m |
137 | | -but allows you to specify the name of the MD5 checkfile. |
| 146 | +.Fl c Ar md5 |
| 147 | +for compatibility purposes |
| 148 | +.It Fl M Ar file |
| 149 | +allows you to specify the name of the checksum file generated by options |
| 150 | +.Fl c |
| 151 | +or |
| 152 | +.Fl m. |
138 | 153 | .It Fl H Ar path |
139 | 154 | .Nm |
140 | 155 | will create a hardlink from a file found under |
|
0 commit comments