Mailinglist Archive: opensuse (1473 mails)
| < Previous | Next > |
Re: [SLE] help with a very simple backup script
- From: alexm@xxxxxxxxxxxxxxxxxxxx (alexm)
- Date: Sun, 1 Aug 1999 12:19:48 -0500 (CDT)
- Message-id: <Pine.LNX.4.05.9908011213520.5511-100000@xxxxxxxxxxxxxxxxxxxx>
Hi,
#!/bin/sh
FN=etc-$(date +%Y-%m-%d)
tar -zcf $FN.tar.gz /etc
You can also use "-T" to supply a list of files to tar.
for complete list of flags (about 12 million of them) run:
# info tar
-alexm
On Sun, 1 Aug 1999, Miguel G. wrote:
> 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
| < Previous | Next > |