Project

General

Profile

« Previous | Next » 

Revision 10000

lib/sh/sync.sh: upload(): use --exclude filters from per-dir .rsync_ignore. note that --exclude-from can't be used for this, because it is relative to the currdir, not the rsync root, and therefore also requires the .rsync_ignore to exist rather than using it only if it exists.

View differences:

sync.sh
23 23
	done
24 24
	set -- "${args[@]}" ${has_includes:+--exclude="**"}
25 25
	
26
	# use .rsync_ignore
27
	set -- --filter="dir-merge,- .rsync_ignore" "$@"
28
	
26 29
	src="$local_dir" dest="$remote_url" command put "$@"
27 30
}
28 31

  

Also available in: Unified diff