Changes between Version 4 and Version 5 of Backing up Sun Directories


Ignore:
Timestamp:
04/05/06 15:11:16 (20 years ago)
Author:
cdelarcuz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Backing up Sun Directories

    v4 v5  
    1212          See 'man mt'. and example 4) below.**
    1313
    14  1)
     14(1)
    1515{{{
    1616> cd /home/my_directory
     
    2323                                         in the current directory)
    2424}}}
    25  2) > cd /
     25(2)
     26{{{
     27> cd /
    2628    > tar cvf /dev/rmt/0  usr  home       (will put directories usr and home
    2729                                         and all subdirectories of usr and home on the
     
    2931    > cd /tmp
    3032    > tar xvf /dev/rmt/0        home            (will extract directory home and all its
    31                                          subdirectories to the current directory)
     33}}}                                      subdirectories to the current directory)
    3234
    33 3)  Not a good idea to make a tar file from data begining with '/', for instance:
    34         tar cvf /dev/rmt/0  /home/carmen/wilds 
     35(3) Not a good idea to make a tar file from data begining with '/', for instance:
     36{{{     
     37tar cvf /dev/rmt/0  /home/carmen/wilds 
    3538    If you try to restore this, you will get permission denied errors.
    3639    Instead, do:
    37         cd /home/carmen/wilds
    38         tar cvf /dev/rmt/0 .
    39 
    40 4)  To add data to a backup tape without overwriting its current contents:
    41 
     40cd /home/carmen/wilds
     41tar cvf /dev/rmt/0 .
     42}}}
     43(4)  To add data to a backup tape without overwriting its current contents:
     44{{{
    4245        > mt -f /dev/rmt/0n eom         (will space out past the EOF mark)
    4346        > tar cvf /dev/rmt/0hn  . > /tmp/newbackup.log &
     
    5861 to retrieve a file from a 'dump' tape later on.  The ufsrestore command is
    5962 convenient to use, see manual pages.
     63}}}
    6064{{{       
    6165#! /bin/csh