tar full path exclusive problem
I use a bash script to tar backup my directory files. But I want the log directory to be excluded.
In my script: CODE1 Code:
cbc_bindir="${HOME}/cbcbin"; If I change the code to: CODE2 Code:
cbc_bindir="${HOME}/cbcbin"; I wonder why CODE1 didn't work? I really want work like the way CODE1 does! |
:twocents:
Try moving the exlcude option before the source directories. I know when I use rsync the order is important or the exclusion does not happen. Like this: Code:
|
Quote:
Hi, could you try it with double quotes " instead of single ' ... "${cbc_bindir}/log/*" This is the difference at first quick test: Code:
echo ""${cbc_bindir}/log/*"" |
The problem is using ', If I use " instead ', it works!
Thanks you guys! |
That is nice to have it working now.
Regards. |
All times are GMT -5. The time now is 07:30 AM. |