updated man.txt

inserted beginning "--" in front of every rsync-opts
This commit is contained in:
testing_rouxdo 2015-06-11 08:52:12 +02:00
parent 4f375a03c1
commit 036f90165e
2 changed files with 13 additions and 1 deletions

View File

@ -30,7 +30,7 @@ fi
set -- set --
if [ -f "$__object/parameter/rsync-opts" ]; then if [ -f "$__object/parameter/rsync-opts" ]; then
while read opts; do while read opts; do
set -- "$@" "$opts" set -- "$@" "--$opts"
done < $__object/parameter/rsync-opts done < $__object/parameter/rsync-opts
fi fi

View File

@ -47,6 +47,13 @@ destination::
remote-user:: remote-user::
Use this user instead of the default "root" for rsync operations. Use this user instead of the default "root" for rsync operations.
rsync-opts::
Use this option to give rsync options with.
See rsync(1) for available options.
Only "--" options are supported.
Write the options without the beginning "--"
Can be specified multiple times.
MESSAGES MESSAGES
-------- --------
NONE NONE
@ -73,6 +80,11 @@ __rsync otherstuff \
--destination /usr/local/bin \ --destination /usr/local/bin \
--source "$__type/files/package2" --source "$__type/files/package2"
# Use rsync option --exclude
__rsync /tmp/testdir \
--source /etc \
--rsync-opts exclude=sshd_conf
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------