From owner-freebsd-questions Tue Mar 13 8:36:37 2001 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 4B00137B71D for ; Tue, 13 Mar 2001 08:36:34 -0800 (PST) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 14crmj-000G2i-00 for freebsd-questions@freebsd.org; Tue, 13 Mar 2001 16:36:33 +0000 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f2DGaXh00401 for freebsd-questions@freebsd.org; Tue, 13 Mar 2001 16:36:33 GMT (envelope-from jcm) Date: Tue, 13 Mar 2001 16:36:33 +0000 From: j mckitrick To: freebsd-questions@freebsd.org Subject: writing a backup script Message-ID: <20010313163632.A344@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm getting my feet wet in some basic script writing with a nice little backup program. It's a script that does a full backup once a month, and an incremental in between. Basically, it looks on the zip disk for a tar file with this month in the title. If it doesn't find it, it does a backup of all the directories I have listed. Otherwise, it looks for a .levelX file, where X is the increment level. The .levelX file just contains the date of that incremental backup. Here is the problem: if there is a full backup for the month, but no .levelX file for some reason, I want it to revert to doing an incremental backup of everything changed since the full backup. What is a good way to do this? jm -- ------------------------------------------------------------------- Jonathon McKitrick -- jcm@freebsd-uk.eu.org To Microsoft: "Your tyranny I was part of, is now cracking on every side. Now your own life is in danger. Your Empire is on fire." Front 242 ------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message