-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrsync.wrapper
141 lines (137 loc) · 3.42 KB
/
rsync.wrapper
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Regenerate rsync.wrapper.c with the generate_wrapper target. The target will
# write directly to ${SRCROOT}/rsync.wrapper.c, the result should be committed
# for now until genwrap(8) makes it to all build hosts.
analytics "com.apple.rsync" noargs
env "CHOSEN_RSYNC"
application "rsync_samba"
# Legacy rsync
path "/usr/libexec/rsync/rsync.samba"
# Both applications will have logonly set as we only want selection via
# env var for the time being.
argmode logonly
# Compare to options.c long_options, long_daemon_options; sorting here
# matches the seemingly arbitrary positioning in options.c.
#
# Note that we only need long options that take arguments here, so that
# we can strip them for analytics purposes. rsync uses its own option
# parser, but it looks like it should be getopt(3) compatible.
flag "modify-window" arg
flag "chmod" arg
flag "max-size" arg
flag "min-size" arg
flag "max-delete" arg
flag "filter" "f" arg
flag "exclude" arg
flag "include" arg
flag "exclude-from" arg
flag "include-from" arg
flag "block-size" "B" arg
flag "compare-dest" arg
flag "copy-dest" arg
flag "link-dest" arg
flag "compress-level" arg
flag "partial-dir" arg
flag "log-file" arg
flag "log-file-format" arg
flag "out-format" arg
flag "log-format" arg
flag "bwlimit" arg
flag "backup-dir" arg
flag "suffix" arg
flag "read-batch" arg
flag "write-batch" arg
flag "only-write-batch" arg
flag "files-from" arg
flag "timeout" arg
flag "rsh" "e" arg
flag "rsync-path" arg
flag "temp-dir" "T" arg
flag "address" arg
flag "port" arg
flag "sockopts" arg
flag "password-file" arg
flag "protocol" arg
flag "checksum-seed" arg
flag "config" arg
application "rsync_openrsync"
default
path "/usr/libexec/rsync/rsync.openrsync"
# Keep in sync with openrsync's main.c. Options marked logonly or
# commented out either need more testing or more work.
flag "address" arg
flag "archive" "a"
flag "compare-dest" arg logonly
flag "link-dest" arg
#flag "compress" "z"
flag "copy-dirlinks" "k"
flag "copy-links" "L"
flag "D"
flag "no-D"
flag "del"
flag "delete"
flag "delete-before"
flag "delete-during"
flag "delete-delay"
flag "delete-excluded"
flag "devices"
flag "no-devices"
flag "dry-run" "n"
# Corner case for globstar not currently handled.
flag "exclude" arg logonly
flag "exclude-from" arg logonly
flag "existing"
flag "group" "g"
flag "no-group"
flag "no-g"
flag "hard-links" "H"
flag "help" "h"
flag "ignore-existing"
flag "ignore-non-existing"
flag "ignore-times" "I"
# Corner case for globstar not currently handled.
flag "include" arg logonly
flag "include-from" arg logonly
# Needs --bwlimit for testing
#flag "inplace"
flag "links" "l"
flag "max-size" arg
flag "min-size" arg
flag "no-links"
flag "no-l"
flag "no-motd"
flag "numeric-ids"
flag "owner" "o"
flag "no-owner"
flag "no-o"
flag "perms" "p"
flag "no-perms"
flag "no-p"
flag "port" arg
flag "recursive" "r"
flag "no-recursive"
flag "no-r"
flag "one-file-system" "x"
flag "rsh" "e" arg
flag "rsync-path" arg
flag "sender"
flag "server"
flag "specials"
flag "sparse" "S"
flag "no-specials"
flag "timeout" arg
flag "times" "t"
flag "no-times"
flag "no-t"
flag "verbose" "v"
flag "no-verbose"
# Needs testing
#flag "backup" "b"
flag "version" "V"
flag "relative" "R"
flag "no-R"
flag "no-relative"
flag "dirs" "d"
flag "no-dirs"
# Doesn't deal with remote files from yet.
flag "files-from" arg logonly
flag "delay-updates"