From owner-freebsd-questions Tue Sep 29 01:00:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA06088 for freebsd-questions-outgoing; Tue, 29 Sep 1998 01:00:40 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.cityip.co.za (ns.cityip.co.za [196.25.223.140]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id AAA05820 for ; Tue, 29 Sep 1998 00:59:34 -0700 (PDT) (envelope-from wjv@cityip.co.za) Received: from wjv by ns.cityip.co.za with local (Exim 1.82 #2) id 0zNufP-0006SE-00; Tue, 29 Sep 1998 09:57:51 +0200 Message-ID: <19980929095751.E24711@cityip.co.za> Date: Tue, 29 Sep 1998 09:57:51 +0200 From: Johann Visagie To: phj , freebsd-questions@FreeBSD.ORG Subject: Re: How to backup data in FreeBSD? Mail-Followup-To: phj , freebsd-questions@FreeBSD.ORG References: <3610DBFD.9B76A265@www.transfar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <3610DBFD.9B76A265@www.transfar.com>; from phj on Tue, Sep 29, 1998 at 01:09:18PM +0000 X-PGP: ftp://ftp.cityip.co.za/users/wjv/pubkey.asc Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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