all,
I have a weird problem with a bash script and rsync (its a snapshot style
backup script).
Somewhere in the script I create the command:
...
...
COMMAND="$RSYNC -rlptgoD --delete --delete-excluded --exclude .snapshot
--exclude \"Temporary Internet Files\" /$d/ $TARGET"
if [ $DEBUG == 1 ]; then $ECHO $COMMAND; fi
$COMMAND
...
...
Now if I execute the command (which is displayed by the debug statement) using
copy and paste into a XTERM it works.
If I take out the --exclude "Temporary Internet Files" it works.
But if I run the command through the script I get:
Rsyncing /home/rsa/ /root/test/home/rsa/hourly.0
/usr/bin/rsync -rlptgoD --delete --delete-excluded --exclude .snapshot
--exclude "Temporary Internet Files" /home/rsa/ /root/test/home/rsa/hourly.0
link_stat "/usr/local/backup/Internet" failed: No such file or directory
IO error encountered - skipping file deletion
rsync error: some files could not be transferred (code 23) at main.c(633)
Error rsyncing home/rsa
Now I have tried:
--exclude \"\"Temporary Internet Files\"\"
--exclude Temporary\ Internet\ Files
--exclude \"Temporary\ Internet\ Files\"
and many other ways.
Any ideas anyone????
jobst
--
do not email me directly, email to this account must come from mailing lists!
all other mail is placed into /dev/null
"There are three kinds of lies: Lies, Damn lies, and statistics." - Disraeli
__, Jobst Schmalenbach, Technical Director
_ _.--'-n_/ Barrett Consulting Group P/L & The Meditation Room P/L
-(_)------(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html