Changes between Version 4 and Version 5 of Backing up Sun Directories
- Timestamp:
- 04/05/06 15:11:16 (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Backing up Sun Directories
v4 v5 12 12 See 'man mt'. and example 4) below.** 13 13 14 1)14 (1) 15 15 {{{ 16 16 > cd /home/my_directory … … 23 23 in the current directory) 24 24 }}} 25 2) > cd / 25 (2) 26 {{{ 27 > cd / 26 28 > tar cvf /dev/rmt/0 usr home (will put directories usr and home 27 29 and all subdirectories of usr and home on the … … 29 31 > cd /tmp 30 32 > 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) 32 34 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 {{{ 37 tar cvf /dev/rmt/0 /home/carmen/wilds 35 38 If you try to restore this, you will get permission denied errors. 36 39 Instead, do: 37 cd /home/carmen/wilds38 tar cvf /dev/rmt/0 .39 40 4) To add data to a backup tape without overwriting its current contents:41 40 cd /home/carmen/wilds 41 tar cvf /dev/rmt/0 . 42 }}} 43 (4) To add data to a backup tape without overwriting its current contents: 44 {{{ 42 45 > mt -f /dev/rmt/0n eom (will space out past the EOF mark) 43 46 > tar cvf /dev/rmt/0hn . > /tmp/newbackup.log & … … 58 61 to retrieve a file from a 'dump' tape later on. The ufsrestore command is 59 62 convenient to use, see manual pages. 63 }}} 60 64 {{{ 61 65 #! /bin/csh
