Mailinglist Archive: opensuse (1473 mails)

< Previous Next >
Re: [SLE] help with a very simple backup script
  • From: paulsen@xxxxxxxxx (Robert C. Paulsen, Jr.)
  • Date: Sun, 01 Aug 1999 10:43:13 -0500
  • Message-id: <37A46B11.97CA754@xxxxxxxxx>



"Miguel G." wrote:
>
> Hi all!
>
> could anyone help me with a very simple script?
> (it simply doesn't work the variables stuff)
> and also how can I modify this (tar) to retrive only files which
> I might get as new from $(find ...)
>
> set $FN = etc-$(date +%Y-%m-%d)
> tar -cf $FN.tar /etc/
> gzip $FN.tar
>
> THANKS A LOT!!!!!
>

Try...

et FN = etc-$(date +%Y-%m-%d)
tar -cf $FN.tar /etc/
gzip $FN.tar

Note that I removed the $ from the first line. I haven't tested the
whole thing so there might be other problems.


--
____________________________________________________________________
Robert Paulsen http://paulsen.home.texas.net


< Previous Next >
References