scripting question
I've got backup script on my system. Not to bore you, but here's the relevant part.
LOG=/home/joe/bin/backup.log
TYPE=' CPIO SAVE : '
FILES="./home/joe/work files"
HOLDDIR=/home/joe/bin/HOLD
My problem seems to be the space in the directory name. It looks for /home/joe/work, and since it doesn't exist it moves on. And there is no file called files in my home directory, so it skips past that. So far so good?
Here's what doesn't work. Dropping the whole thing into quotes by itself ("/home/joe/work files"), wildcarding it (this doesn't work because the whole thing is in quotes), escaping the space (/home/joe/work\ files).
I'm out of ideas. is there any way to do this, or will I have to rename the directory?
later,
~joe
LOG=/home/joe/bin/backup.log
TYPE=' CPIO SAVE : '
FILES="./home/joe/work files"
HOLDDIR=/home/joe/bin/HOLD
My problem seems to be the space in the directory name. It looks for /home/joe/work, and since it doesn't exist it moves on. And there is no file called files in my home directory, so it skips past that. So far so good?
Here's what doesn't work. Dropping the whole thing into quotes by itself ("/home/joe/work files"), wildcarding it (this doesn't work because the whole thing is in quotes), escaping the space (/home/joe/work\ files).
I'm out of ideas. is there any way to do this, or will I have to rename the directory?
later,
~joe
