| 317 | } |
| 318 | |
| 319 | void usage(enum logcode F) |
| 320 | { |
| 321 | print_rsync_version(F); |
| 322 | |
| 323 | rprintf(F,"\n"); |
| 324 | rprintf(F,"rsync is a file transfer program capable of efficient remote update\n"); |
| 325 | rprintf(F,"via a fast differencing algorithm.\n"); |
| 326 | |
| 327 | rprintf(F,"\n"); |
| 328 | rprintf(F,"Usage: rsync [OPTION]... SRC [SRC]... DEST\n"); |
| 329 | rprintf(F," or rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST\n"); |
| 330 | rprintf(F," or rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST\n"); |
| 331 | rprintf(F," or rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST\n"); |
| 332 | rprintf(F," or rsync [OPTION]... [USER@]HOST:SRC [DEST]\n"); |
| 333 | rprintf(F," or rsync [OPTION]... [USER@]HOST::SRC [DEST]\n"); |
| 334 | rprintf(F," or rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]\n"); |
| 335 | rprintf(F,"The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect\n"); |
| 336 | rprintf(F,"to an rsync daemon, and require SRC or DEST to start with a module name.\n"); |
| 337 | rprintf(F,"\n"); |
| 338 | rprintf(F,"Options\n"); |
| 339 | #include "help-rsync.h" |
| 340 | rprintf(F,"\n"); |
| 341 | rprintf(F,"Use \"rsync --daemon --help\" to see the daemon-mode command-line options.\n"); |
| 342 | rprintf(F,"Please see the rsync(1) and rsyncd.conf(5) manpages for full documentation.\n"); |
| 343 | rprintf(F,"See https://rsync.samba.org/ for updates, bug reports, and answers\n"); |
| 344 | } |
| 345 | |
| 346 | void daemon_usage(enum logcode F) |
| 347 | { |
no test coverage detected