Re: Running Tar from a Shell Script.

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: keith smith
Date:  
To: Main PLUG discussion list
Subject: Re: Running Tar from a Shell Script.

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


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 not sure exactly what that means.
>
> 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 names
> /bin/tar: /work/dev/\r: Cannot stat: No such file or directory
> /bin/tar: Error exit delayed from previous errors
> : command not founde 4:
>
> I am not sure why these errors.  Any help is much appreciated.


I know this isn't really answering your question, so apologies in advance for that...

Looks like you're backing up some development code?  Have you considered using a version control system instead?  Granted, you then need to make backups of your repositories, but you gain a whole wealth of other benefits.

alex
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss