I'd like to exclude the directories "temp" and "Ubuntu One/" from backup. What is the correct escaping of the space????
RSYNCCONF="--delete --exclude=.* --exclude=temp/"
Thanks in advance!
- Chris
Edit/PS:
excludes=( ".*" temp/ "Ubuntu One/" )' 'RSYNCCONF="${excludes[@]/#/--exclude=}"
and
$RSYNC -e "$S" -avR $FROMSSH:$SOURCE ${RSYNCCONF[@]} $TARGET$TODAY $INC >> $LOG 2>&1
didn't work. I'd really appreciate any advice.
This is the script: http://wiki.ubuntuusers.de/_attachment?target=Skripte%2FBackup_mit_RSYNC%2Fbackup.sh