From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,25ad78187a6ba3ee X-Google-Attributes: gidfee84,public From: Peter.Mayne@cao.mts.dec.com (Peter Mayne) Subject: Re: Backing up a file system on-line? Date: 1996/02/11 Message-ID: <4flpbs$70a@funlwb2.stl.dec.com>#1/1 X-Deja-AN: 138969200 references: <1996Feb8.170414@malad2.mala.bc.ca> content-type: Text/Plain; charset=US-ASCII organization: Digital Equipment Corporation (Australia) mime-version: 1.0 newsgroups: comp.unix.osf.osf1 In article <1996Feb8.170414@malad2.mala.bc.ca>, dunnett@mala.bc.ca says... > > > I'm new to managing Unix systems and I'm a little confused about >backup procedures. > > In reading the system administrators guide it suggests that the >only safe way to backup a UFS file system is with the file system >unmounted and the system in single user mode. This seems like a >major disruption in a system which we'd like to be as close to 24x7 >as possible. > > What exactly are the dangers with doing dumps of an on-line file >system. Consider what happens if you back up a directory, but before you can back up one of the files in that directory, it's deleted. What happens when you do a restore? And yes, dump does do a first pass through the inodes and a second pass to do the copy. It's just like backing up a database: how consistent will it be if it took a couple of hours to back it up at the same time as users are modifying it? UNIX is a bit trickier in that at least a database has locks: in UNIX, you can backup files that other users have open without any warning at all. Traditionally, the only safe way is in single user mode (with the filesystems mounted, otherwise you can't use vdump, tar, whatever). However, if you use AdvFS and have the AdvFS utilities, you can create a clone filesystem, which is a read-only snapshot of the filesystem. Shut down your users, database, etc for a couple of seconds, create the clone, start up your users, databases, etc, and take as long as you like to back up the clone filesystem. -- PJDM Peter Mayne Digital Equipment Corporation (Australia) Canberra, ACT ---- These are my opinions, and have nothing to do with Digital. The truth is out there, but not necessarily in here.