Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 1998 06:59:42 -0000 (GMT)
From:      Francisco Reyes <francisco@natserv.com>
To:        Johann Visagie <wjv@cityip.co.za>
Cc:        freebsd-questions@FreeBSD.ORG, phj <phj@www.transfar.com>
Subject:   Re: How to backup data in FreeBSD?
Message-ID:  <199809291059.GAA16292@federation.addy.com>
In-Reply-To: <19980929095751.E24711@cityip.co.za>

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

On 29-Sep-98 Johann Visagie wrote:
> 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.
> 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.

Dump is not so complex. Once it is setup (one time process), plus the
restore command in interactive mode is fairly simple to use.

 
> For instance, to do an incremental backup,
> 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

Compared to that find statement dump is easy. :-)

Phj,

Dump will allow you to do a backup on a volume level. For example you will
be able to backup "/". Dump has 9 levels of increment. 0 means everything,
1 means changed since last 0 level backup. Each level backs up files
changed since the previous level backup.

Tar works at a file level. This gives you the advantage of been able to
exclude unnecessary files at the expense of having to use find to produce
the list for you.

I recommend you get familiar with both.
For instance I use dump for my full backup and incrememtals ever couple of
days. I use tar for daily backups of essential configuration files which
are both critical and small (i.e. configuration files for ppp, /etc/hosts,
....). This daily tar fits in a floppy and I have 5 floppies I rotate.
----
francisco@natserv.com
Live free or die!!   http://www.freebsd.org

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?199809291059.GAA16292>