Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 17:27:48 -0600
From:      Mike Meyer <mwm-dated-1044055669.3fadd8@mired.org>
To:        Francisco Reyes <lists@natserv.com>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: Which files and directories to backup?
Message-ID:  <15924.28404.975979.636400@guru.mired.org>
In-Reply-To: <20030126180330.L17637-100000@zoraida.natserv.net>
References:  <20030126180330.L17637-100000@zoraida.natserv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In <20030126180330.L17637-100000@zoraida.natserv.net>, Francisco Reyes <lists@natserv.com> typed:
> What files or directories shoud I ignore when doing a tar backup?
> 
> So far my include list is:
> /etc
> /usr/home
> /usr/local/etc
> /usr/src/sys/i386/conf
> /var/log
> /root
> /.profile
> /.cshrc
> 
> And my exclude list is
> /root/.netscape/cache
> /etc/fstab

It's a bad idea to exclude fstab. 

> /etc/mtree
> /etc/isdn
> /etc/uucp

isdn and uucp are probably not ignorable if you are using them.

> /usr/local/etc/codepages/
> 
> 
> Planning to create a separate tar just for /usr/local
> How about /var?
> should I backup all of it?

You can exclude /var/run, /var/spool/lock, /var/backups, /var/rwho and
/var/tmp.  Other things you may be able to exclude depending on
whether or not you are using them include;

/var/msgs			the messages system, which is the msgs command
/var/mail			delivered mail
/var/spool/lpd			line printer spool
/var/spool/mqueue		sendmail
/var/spool/uucp,uucppublic	uucp

	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

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?15924.28404.975979.636400>