help required in logging tar command output
drumil narayan
drumilnarayan at yahoo.com
Wed Mar 7 14:03:46 UTC 2007
Thanks Rick,
it works fine..
if I wnat to combine into one comamnd then what
changes I should make!
Thanks!
Drumil
--- Rick Stevens <rstevens at vitalstream.com> wrote:
> On Fri, 2007-03-02 at 12:53 +0000, drumil narayan
> wrote:
> > Hello,
> >
> > am trying to backup some directories using tar and
> > furhter have to prepare the log file of it.
> >
> > this is going to be job which will run as
> background
> > process
> >
> > am trying this
> >
> > tar -cvf Disk1.tar /home/Oracle/Disk1/* >
> Disk1.log
> > &nohup
> > gzip Disk1.tar
> >
> > its not preparing gzip Disk1.tar
> > can sombody correct me please
>
> It's easier if you create a script,
> /usr/local/bin/backup:
>
> #!/bin/bash
> cd /some/working/directory
> tar cvf Disk1.tar /home/Oracle/Disk1/* >Disk1.log
> 2>&1
> gzip Disk1.tar
>
> Then "chmod 755 /usr/local/bin/backup". Run that
> script via:
>
> # nohup /usr/local/bin/backup &
>
> That way you can even crontab it should you wish.
>
> >
> > thanks..drumil
> >
> >
> >
> >
>
__________________________________________________________
> > Yahoo! India Answers: Share what you know. Learn
> something new
> > http://in.answers.yahoo.com/
> >
> > _______________________________________________
> > Redhat-install-list mailing list
> > Redhat-install-list at redhat.com
> >
>
https://www.redhat.com/mailman/listinfo/redhat-install-list
> > To Unsubscribe Go To ABOVE URL or send a message
> to:
> > redhat-install-list-request at redhat.com
> > Subject: unsubscribe
>
----------------------------------------------------------------------
> - Rick Stevens, Principal Engineer
> rstevens at vitalstream.com -
> - VitalStream, Inc.
> http://www.vitalstream.com -
> -
> -
> - Never test for an error condition you don't know
> how to handle. -
>
----------------------------------------------------------------------
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
>
https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
>
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
More information about the Redhat-install-list
mailing list