Added rsync_options to the documentation

This commit is contained in:
Nico Schottelius 2006-01-13 23:48:07 +01:00
parent de6f5cffeb
commit b81ff08df8
2 changed files with 17 additions and 3 deletions

View file

@ -129,6 +129,7 @@ Additionally a source may have the following files:
- `verbose` whether to be verbose (passes -v to rsync) - `verbose` whether to be verbose (passes -v to rsync)
- `exclude` exclude list for rsync. One exclude specification on each line. - `exclude` exclude list for rsync. One exclude specification on each line.
- `rsync_options' extra options to pass to rsync
Example: Example:
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -214,6 +215,20 @@ Example:
20 20
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Detailled description of "rsync_options"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When you create the file "rsync_options" below your source configuration,
all the parameters found in this file will be passed to rsync. This
way you may specify a rsync-passwordfile for automatic backup over
the rsync-protocoll.
Example:
--------------------------------------------------------------------------------
[23:42] hydrogenium:ccollect-0.2% cat conf/sources/test_rsync/rsync_options
--password-file=/home/user/backup/protected_password_file
--------------------------------------------------------------------------------
Examples Examples
-------- --------

View file

@ -5,10 +5,9 @@ DHOST=nico@creme.schottelius.org
DDIR=www/org/schottelius/linux/ccollect/ DDIR=www/org/schottelius/linux/ccollect/
DESTINATION="$DHOST:$DDIR" DESTINATION="$DHOST:$DDIR"
tar cvfj "$TARNAME" tar cvfj "$TARNAME" \
--exclude=.git \ --exclude=.git \
--exclude="conf/sources/*/destination/*" \ --exclude="conf/sources/*/destination/*" "$NAME"
"$NAME"
scp "${TARNAME}" "$DESTINATION" scp "${TARNAME}" "$DESTINATION"