Project

General

Profile

« Previous | Next » 

Revision 10038

lib/sh/sync.sh: upload(): .rsync_filter: also support machine-specific filters, for cases when different machines produce the same file (e.g. a log file) but only one machine's copy should be backed up

View differences:

lib/sh/sync.sh
39 39
	
40 40
	# use directional .rsync_filter
41 41
	local filter_type=upload; if test "$swap"; then filter_type=download; fi
42
	set -- --filter="dir-merge .rsync_filter.$filter_type" "$@"
42
	set -- --filter="dir-merge .rsync_filter.$(hostname -s).$filter_type" \
43
	       --filter="dir-merge .rsync_filter.$filter_type" "$@"
43 44
	
44 45
	src="$local_dir" dest="$remote_url" command put "$@"
45 46
}

Also available in: Unified diff