Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 1998 09:57:51 +0200
From:      Johann Visagie <wjv@cityip.co.za>
To:        phj <phj@www.transfar.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: How to backup data in FreeBSD?
Message-ID:  <19980929095751.E24711@cityip.co.za>
In-Reply-To: <3610DBFD.9B76A265@www.transfar.com>; from phj on Tue, Sep 29, 1998 at 01:09:18PM %2B0000
References:  <3610DBFD.9B76A265@www.transfar.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Sep 1998 at 13:09 SAT, phj wrote:
>
> I have bulk of data(there are many many directories.) to backup,
> but I  only want to backup the modified part.
> 
> 1.    How can I do that ?
> 2.    Is there any tools availble ?
> 3.    Can the command "tar" work for this purpose?
> 4.     Is there any method to do increment backup?

Read the man page for dump(8).

Most of what you say can also be accomplished by clever usage of tar, if you
don't want to go into the complexities of dump.

For instance, to do an incremental backup, write a little script which does a
complete backup, and then touches a file (say, /usr/local/etc/lastbackup).

Then, to do an incremental backup, you can do:

find / \( -path '/tmp' -prune \) -o \
       \( -path '/proc' -prune \) -o \
       \( -name '*.core' -prune \) -o \
       \( -name 'a.out' -prune \) -o \
       \( ! -type d -newer /usr/local/etc/lastbackup -print |) \
| tar cvTf - /dev/nrst0 >/var/log/backup.incremental.log 2>&1

... or similar.

-- V

Johann Visagie | Email: wjv@CityIP.co.za | Tel: +27 21 419-7878

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?19980929095751.E24711>