* Question about backups
@ 1994-10-03 19:22 Karl E. Liliestedt
1994-10-03 21:50 ` Paul Southworth
0 siblings, 1 reply; 2+ messages in thread
From: Karl E. Liliestedt @ 1994-10-03 19:22 UTC (permalink / raw)
The company I work for is currently in the process of porting from DEC
Ultrix to OSF/1 Version 2.0 running on a pair of DEC Alpha APX 3000
model 300 and a DEC Alpha 4000 model 610.
One of the problems that we are having is converting our backup
procedures.
Under our current Ultrix system, we execute a find command to obtain a
listing of all of the files for the particular mount point we desire to
backup. After this list is obtained, specific files are then removed
from the list (core files, certain system logs, etc) which need not be
backed up. This list is then passed to cpio and piped through a dd
command to a tape. After all of the files have been loaded to the tape,
the tape is then reread to create an index of the files actually on the
tape. All of this is done because this is a medical patient care
system with users on the system at all times so we cannot take the
system down just to perform backups. This procedure has worked fine
for the past 10 years.
While porting to OSF/1, we have encounted some difficulties.
1) Under OSF/1, cpio will not copy "special files" (i.e., device files
like disks, tape, ttys, ptys, etc.). This is not particularly good
when trying to backup a / partition. If a restore has to be done,
then the person doing the restore has to remember which device
files need to be remade.
2) If dump and restore are used, it is my understanding that I should
take the system down to single user to get a reliable backup. Even
though I am the only user on my particular development system,
while running some tests I have had the experience of dump/restore
resulting in a different number of inodes used and/or the total
blocks used. I also have not figured out how to index the tape
once the dump has been performed.
3) The use of tar is out because it requires all of the file names to
be specified on the command line and, with the number of files
being backed up, it would probably exceed the number of arguments
that tar can handle. This means something like "tar cf /dev/rmt0
`cat filelist`" is out. Even if we decided not exclude some files,
a "tar cd /dev/rmt0 ." command will also backup everything,
including files on a different file system if that mount point is
included in any directory being backed up.
Short of taking the Ultrix source we have for cpio and porting it to
OSF/1, I am out of ideas. Does GNU have a stable version of cpio that
handles special devices and is it ported to OSF/1? If so, where is it
available?
I'm hoping somebody else has run across this type of problem and has
come up with a reasonable solution which I can implement.
Thanks in advance for any help you can offer!
Karl Liliestedt (osfmgt@msdc.com)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about backups
1994-10-03 19:22 Question about backups Karl E. Liliestedt
@ 1994-10-03 21:50 ` Paul Southworth
0 siblings, 0 replies; 2+ messages in thread
From: Paul Southworth @ 1994-10-03 21:50 UTC (permalink / raw)
In article <9410031922.AA04656@msdc.msdc.com>,
Karl E. Liliestedt <osfmgt@msdc.com> wrote:
>1) Under OSF/1, cpio will not copy "special files" (i.e., device files
> like disks, tape, ttys, ptys, etc.). This is not particularly good
> when trying to backup a / partition. If a restore has to be done,
> then the person doing the restore has to remember which device
> files need to be remade.
Get GNU cpio and try that then. prep.ai.mit.edu:/pub/gnu/cpio-*.tar.gz
>2) If dump and restore are used, it is my understanding that I should
> take the system down to single user to get a reliable backup. Even
> though I am the only user on my particular development system,
> while running some tests I have had the experience of dump/restore
> resulting in a different number of inodes used and/or the total
> blocks used. I also have not figured out how to index the tape
> once the dump has been performed.
First, you're right -- dump under OSF/1 is extremely sensitive and
multi-user mode dumps (in my experience) result in tons of unrecoverable
files on the tape. We never had trouble on that scale with the Suns.
Second, the best way to index a dump archive, in my opinion, is to just
write the index to a file on the root directory of the partition you're
backing up before you back it up. Time stamp it in the filename for
easy identification during an interactive restore.
>3) The use of tar is out because it requires all of the file names to
> be specified on the command line and, with the number of files
> being backed up, it would probably exceed the number of arguments
> that tar can handle. This means something like "tar cf /dev/rmt0
> `cat filelist`" is out. Even if we decided not exclude some files,
> a "tar cd /dev/rmt0 ." command will also backup everything,
> including files on a different file system if that mount point is
> included in any directory being backed up.
I think you're wrong about this not being an option. Have you tried
using the "-I" include file syntax? If OSF/1 doesn't support it (not
sure offhand) then I'm sure GNU tar will, and GNU tar will handle
special devices too.
>Short of taking the Ultrix source we have for cpio and porting it to
>OSF/1, I am out of ideas.
That might not be so hard. Give it a try if the GNU utilities don't suit.
--
Paul Southworth
CICNet Systems Support
pauls@cic.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-03 21:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-03 19:22 Question about backups Karl E. Liliestedt
1994-10-03 21:50 ` Paul Southworth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox