Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2001 16:36:33 +0000
From:      j mckitrick <jcm@FreeBSD-uk.eu.org>
To:        freebsd-questions@freebsd.org
Subject:   writing a backup script
Message-ID:  <20010313163632.A344@dogma.freebsd-uk.eu.org>

next in thread | raw e-mail | index | archive | help

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




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