File: README.rsync

package info (click to toggle)
authprogs 0.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: python: 1,031; makefile: 15
file content (58 lines) | stat: -rw-r--r-- 1,702 bytes parent folder | download | duplicates (4)
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

# Rsync option support

The overall plan is to fully parse the rsync command line.
Not all features, however, can be restricted by
`authprogs`, while others may have no security
ramifications.

Nonetheless the rsync command line **must** be considered
valid.

Support for more flags will be added as time allows, and
preference will be given to those flags that are reported
as actively needed.

Parsing was done based on the rsync-3.1.2 source code.

# How Rsync Works

rsync converts the client command line into server rsync
command via the server\_options function in options.c.
Only those options that the server needs to know are
actually passed onto the server.


# Limitations

Not all rsync options have been fully investigated, e.g.
the `--files-from` / `--filter` / `--include` / `--exclude`
ones. There ay be dragons.


# Weirdness

rsync overloads the -e flag. On the client it tells rsync
which program to use for 'ssh'. On the server it indicates
the protocol version to indicate the protocol. This option
is either `-e.` to indicate no version, or `-e#.#` when a
version has been negotiated.  When running over ssh, there
is no version, so this always starts as `-e`.

rsync then appends some pre-release protocol version and
behaviour flags information. These look like the single
letter options above but they are not. (For example the `C`
in `-e.C` means that the client supports a checksum seed
order fix, not that the `-C` (`--cvs-exclude`) flag is
being sent.

Authprogs currently recognises the -e option and ignores
its value.  For reference, as of rsync-3.1.2 this will
typically be `-e.LsfxC`)


# See also

For `authprogs`' rsync documentation and usage see authprogs.md.