Revision 10013
Added by Aaron Marcuse-Kubitza over 11 years ago
sync.sh | ||
---|---|---|
27 | 27 |
# use .rsync_ignore |
28 | 28 |
set -- --filter="dir-merge,- .rsync_ignore" "$@" |
29 | 29 |
|
30 |
# use directional .rsync_filter |
|
31 |
local filter_type=upload; if test "$swap"; then filter_type=download; fi |
|
32 |
set -- --filter="dir-merge .rsync_filter.$filter_type" "$@" |
|
33 |
|
|
30 | 34 |
src="$local_dir" dest="$remote_url" command put "$@" |
31 | 35 |
} |
32 | 36 |
|
Also available in: Unified diff
lib/sh/sync.sh: upload(): use directional .rsync_filter to supplement .rsync_ignore with all kinds of --filter rules. separate .rsync_filters are needed for the upload (swap=) and download (swap=1) directions because the sender and the receiver are reversed, causing asymmetric rules like protect/hide to change meaning.