tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: tar problem, mt problem
@ 1999-01-26 14:48 Clemens Schmuck
  0 siblings, 0 replies; only message in thread
From: Clemens Schmuck @ 1999-01-26 14:48 UTC (permalink / raw)
  To: tru64-unix-managers

wow, that was fast. in minutes i recived 4 answers which helped me a lot.
thank you very much!!

my first question was:
>tar problem
>===========
>i just encountered a problem with the tar command.
>on my du4.0d i made a cold backup of an oracle database. when resoring the
>data from tape i noticed that the suid and sgid were not stored to tape
>and  after the recovery i had to set them by hand again.
> 
>the online docu does not tell anything about suid or sgid bits.
> 
>my questions are:
  >1. is that a festure or a bur - is there a workaround
  >2. which other tools do have this feature/bug (cpio, dump, ...)
  >3. which tool for backing up oracle dbs do you prefer.

and here the answer:
  tar will save permissions to tape if you have the access rights, but you need the -p
  flag to set them on restore.
  [...]
  By the way, the tcopy command is very useful to find out what is on a tape in
  the way of number of savesets etc.
  In general though, it is not a good idea to use tar to backup *filesystems*.
  Individual files yes,
  file systems no. I have no specific Oracle experience though.
  See the paper of Elizabeth Zwicky  on torture testing backup programs
  for details of "not a good idea".

  thanks to Burch Seymou and  Oisin McGuinness 

----------------------------end question 1

my second question was:
>mt problem
>==========
>on du4.0d i tried to make store several tar archives to one tape. to do so
>i made the first tar at the beginning of the tape then i wanted to
>position the tape at the end of written data on tape. although i tried
>several times i could not figure out how that is done and how one can
>navigate through different files on tape
> 
>can anybody please explain and/or give an example?

and here the answer:
  As regards the multiple save set issue, the key things are
  a) use the non-rewind tape device
  b) learn about the fsf option to the mt command for restores.
 
  For example, to tar two file systems to tape:
 
  #!/bin/csh
  #
 
  setenv TAPE /dev/nrmt0h
   
  foreach fs ( /mnt1 /mnt2 )
  tar cf $TAPE $fs
  end
   
  To restore the 2nd from tape:
  #!/bin/csh
  setenv TAPE /dev/nrmt0h
  mt fsf 1
  tar xpf

  thanks to Burch Seymour, Gavin Kreuiter, Partin.Kevin, Oisin McGuinness

----------------------------end question 2

--------------------------------------------------------------------------
 clemens schmuck - systemadministator                              
 edv-zentrum universitaet salzburg    	+43 (0)662 8044 6731      
 hellbrunnerstr. 34                   	clemens@wst.edvz.sbg.ac.at
 5020 salzburg, austria               	http://www.edvz.sbg.ac.at/~clemens 
--------------------------------------------------------------------------
   get my public key from http://www.edvz.sbg.ac.at/~clemens/pks.html
--------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-01-26 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-26 14:48 SUMMARY: tar problem, mt problem Clemens Schmuck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox