Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2000 12:42:44 +0100
From:      j mckitrick <jcm@FreeBSD-uk.eu.org>
To:        cjclark@alum.mit.edu
Cc:        freebsd-questions@freebsd.org
Subject:   Re: backup problems with tar script
Message-ID:  <20000926124244.A24107@dogma.freebsd-uk.eu.org>
In-Reply-To: <20000925232352.O59015@149.211.6.64.reflexcom.com>; from cjclark@reflexnet.net on Mon, Sep 25, 2000 at 11:23:52PM -0700
References:  <20000926021341.A18819@dogma.freebsd-uk.eu.org> <20000925232352.O59015@149.211.6.64.reflexcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
| If that's what you wanna do,
| 
|   #!/bin/sh
|   #
| 
|   PREV_FILE=~/.admin/date.home.dump
|   NOW=`date`
|   LABEL=`date +%Y%m%d`
|   PREV=`cat $PREV_FILE`
| 
|   tar czlvfNV /mnt/zip/etc_$LABEL.tgz "$PREV" "From $PREV to $NOW" /etc
| 
|   echo $NOW > $PREV_FILE

Thank you sir, 'preciate the help.  I'll give this one a shot.

| But I gotta say, is your /etc really changing daily?

No, I was just using it for testing for two reasons:  It is small, and I
don't have to worry about  making sure it doesn't archive itself in the
process.


jcm
-- 
"I drank WHAT ?!" - Socrates


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000926124244.A24107>