Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2002 12:05:37 +0100
From:      rene@xs4all.nl
To:        questions@freebsd.org
Subject:   backups using tar?
Message-ID:  <20020124120536.O10869@xs4all.nl>

next in thread | raw e-mail | index | archive | help
Hello. I've got a system that I regularly update with cvsup, then rebuilding
my world and all and in general I'm very happy with this.

However, backups are a necessity and I've got them down with dump & restore.

Now, I'd also like to be able to do it with tar. the idea being that instead
of fixing my personal and config files together with my system, I'd be able
to keep them seperate.

Restoration would then be a matter of installing the latest (desired) branch
of FreeBSD onto a new harddisk, then unpacking the tar file from root under
that.

I've found some NetBSD HowTo that has a line on how to accomplish this, but
it doesn't quite do the trick for FreeBSD.

find / -type f -newer /etc/rc ! \
        \( -name "backup" -or -name "burn" \) \
        -exec tar -rvf $backupfile {} \;

the problem is that this line includes most of my /usr/ports, /usr/bin/,
practically my complete system. Then I might aswell dump it ;)

What would I need to tell tar in order not to take any system files, just my
personal files? Please take into account that I cvsup sometimes.

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?20020124120536.O10869>