Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!uunet!shelby!msi.umn.edu!cs.umn.edu!news From: slevy@poincare.geom.umn.edu (Stuart Levy) Newsgroups: comp.sys.sgi Subject: bru backups excluding some directories? Summary: How? Not as easy as it looks Message-ID: <1991Feb6.180543.8377@cs.umn.edu> Date: 6 Feb 91 18:05:43 GMT Sender: news@cs.umn.edu (News administrator) Organization: Geometry Group, University of Minnesota Lines: 28 Nntp-Posting-Host: poincare.geom.umn.edu I'm trying to make a full bru filesystem backup, but excluding a few directories like /tmp, /usr/tmp, /usr/adm/crash, etc. It's easy with GNU tar, but I'd like to make the tape be directly readable from the recovery system. It's tempting to try find / /usr -mount -print | egrep -v ... | bru ... - but bru's man page suggests this won't work -- 'find' will find all directories *and* all files, and bru will traverse all the directories it's given, so everything will be backed up >= 2 times. A better approximation could be find / /usr -mount -type d -o -print | egrep -v ... | bru ... - This gets all files, sym links, &c exactly once, and bru promises to archive the directories that contain them. But directories that happen to be empty at the time -- /usr/spool/mqueue, /usr/preserve, filesystem mount points etc. -- won't be re-created when the archive is restored. Neither will the excluded directories. Has anyone come up with a good way to get bru to do this? Thanks in advance... Stuart Levy, Geometry Group, University of Minnesota slevy@geom.umn.edu