On Thu, Apr 18, 2002 at 04:59:15PM +0100, Spicer, Kevin wrote:
> Thanks, (and to everyone else who replied)
> 
> If I'm reading this right...
> I want to back up each partition seperately so to backup my root / partition
> I should put /var in an exclude list and then backup var excluding
> ./log/messages...
> yes?
> Sorry if that seems like a stupid question but I'd like to be sure.


No, here is some clarification (hopefully)

"partitions", "file systems", "directories", each a term with multiple uses.

To avoid confusion, you back up "disk list entries" (DLE's :), ie things
you put in your disklist file.

These DLE's can be any of the above, but using tar there should be at
least one DLE for each file system (partition?) you want to backup.
A DLE of "/" does not back up the entire system unless you have only
one file system.  I installed my laptop Solaris is like this, but no
other system.

Often the DLEs are the full path to the mount point of a file system.
Thus, supposing you have 3 file systems, the root (/), /var, and /opt,
you should have a minimum of 3 DLEs.

        hostname        /       dumptype
        hostname        /var    dumptype
        hostname        /opt    dumptype

To exclude a single file like /var/log/messages, you could put a line
in the dumptype 'exclude "./log/messages".  Note that the path should
NOT include the part of the path to the start of the DLE.  (for more
detail, see the excellent article on exclude by A.Hall in your "docs"
directory)  But note that this will also exclude /opt/log/messages
and /log/messages if all three DLEs use the same dumptype entry.
For finer control you will have to create separate, nearly identical
dumptypes.  (not hard as one dumptype can incorporate a common type).

This exclude mechanism will only allow the exclusion of a single file.
For multiple file exclusions you have to use an 'exclude list filename'
directive and specify a file containing the exclusions.  Again see
A.Hall's article.
-- 
Jon H. LaBadie                  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

Reply via email to