Re: Running Tar from a Shell Script.

2010-07-27 Thread keith smith
Okay it was a DOS carriage return.  I did a dos2unix filename.sh and all is well!! Thanks! Keith Smith --- On Tue, 7/27/10, Mark Stoecker wrote: From: Mark Stoecker Subject: Re: Running Tar from a Shell Script. To: "Main PLUG discussion list" Dat

Re: Running Tar from a Shell Script.

2010-07-27 Thread Mark Stoecker
"tar: Removing leading `/' from member names" is because you are not running the tar command from within the directory you are archiving. Use the -C switch to specify the directory you want to run tar from. tar -czf /backups/my-backup-$(date +%Y%m%d).tgz -C /work/dev/ * That will switch to th

Re: Running Tar from a Shell Script.

2010-07-27 Thread keith smith
That's on the horizon.  Today I need to get things tar'ed. Keith Smith --- On Tue, 7/27/10, Alex Dean wrote: From: Alex Dean Subject: Re: Running Tar from a Shell Script. To: "Main PLUG discussion list" Date: Tuesday, July 27, 2010, 1:59 PM O

Re: Running Tar from a Shell Script.

2010-07-27 Thread Dale Farnsworth
> If I run "tar -czf /backups/my-backup-$(date +%Y%m%d).tgz /work/dev/" > from the command line, less the quotes, it runs just fine with the > exception of the one message that says "tar: Removing leading `/' from > member names", which I am not sure exactly what that means. If filenames are store

Re: Running Tar from a Shell Script.

2010-07-27 Thread Jason Holtzapple
On 07/27/2010 01:54 PM, keith smith wrote: > If I create a shell script with two lines, as follows: > > #!/bin/bash > > /bin/tar -czf /backups/my-backup-$(date +%Y%m%d).tgz /work/dev/ > > > I get the following output: > > : command not founde 2: > /bin/tar: Removing leading `/' from member n

Re: Running Tar from a Shell Script.

2010-07-27 Thread Alex Dean
On Jul 27, 2010, at 3:54 PM, keith smith wrote: Hi, If I run "tar -czf /backups/my-backup-$(date +%Y%m%d).tgz /work/ dev/" from the command line, less the quotes, it runs just fine with the exception of the one message that says "tar: Removing leading `/' from member names", which I am

Running Tar from a Shell Script.

2010-07-27 Thread keith smith
Hi, If I run "tar -czf /backups/my-backup-$(date +%Y%m%d).tgz /work/dev/" from the command line, less the quotes, it runs just fine with the exception of the one message that says "tar: Removing leading `/' from member names", which I am not sure exactly what that means. If I create a shell