Re: Help with Tar command

2010-08-01 Thread Alan Chandler
On 01/08/10 18:00, Bob Proulx wrote: Sven Joachim wrote: Alan Chandler wrote: I suspect the * here is being expanded by the shell before it calls tar, which is what causes the problem. Indeed, that is the problem. Agreed. How can I tell tar to copy all the files in the /bak/mb.com direc

Re: Help with Tar command

2010-08-01 Thread Bob Proulx
Sven Joachim wrote: > Alan Chandler wrote: > > I presume my cron job is being run with the current directory as > > filesystem root, because this command line > > tar -czf /bak/archive/snap/mb.com/melinda.tar.gz --exclude-tag=NOBAK.TAG -C > > /bak/mb.com * > > complains that it can't find many of

Re: Help with Tar command

2010-08-01 Thread Sven Joachim
On 2010-08-01 18:07 +0200, Alan Chandler wrote: > I am using tar within a monthly cron job, and found that my command > line has an error. I 'think' I understand what it is, but I can't > find any examples or explanation by reading the tar manual on the GNU > website, or generally using google of

Help with Tar command

2010-08-01 Thread Alan Chandler
I am using tar within a monthly cron job, and found that my command line has an error. I 'think' I understand what it is, but I can't find any examples or explanation by reading the tar manual on the GNU website, or generally using google of how to work round it. I presume my cron job is bein