From owner-freebsd-questions Tue Sep 26 4:43: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id 2C5FC37B424 for ; Tue, 26 Sep 2000 04:43:04 -0700 (PDT) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 13dt8P-000L7Y-00; Tue, 26 Sep 2000 12:42:53 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) id MAA24205; Tue, 26 Sep 2000 12:42:45 +0100 (BST) (envelope-from jcm) Date: Tue, 26 Sep 2000 12:42:44 +0100 From: j mckitrick 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> References: <20000926021341.A18819@dogma.freebsd-uk.eu.org> <20000925232352.O59015@149.211.6.64.reflexcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG | 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