HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 44

HP-UX and Cartridge Tapes: tcio, Creating a Bootable System Backup

Page 44 highlights

Backups For the frecover -x mode, the -g option is available. This allows you to use a graph file in the same way as with fbackup. The file format of the graph file is the same. This is useful for partial recoveries. Examples Recover all files from medium-density tape: # frecover -rf /dev/rmt/0m Recover all files indicated in /usr/local/graph: # frecover -x -g /usr/local/graph -f /dev/rmt/0m Retrieve an index of files from tape and put it in /tmp/index: # frecover -I /tmp/index -f /dev/rmt/0m HP-UX and Cartridge Tapes: tcio The wear and tear on a cartridge tape drive due to redirection is extensive because the data transfer rates between the host computer and the cartridge tape drive are not synchronized. Thus, HP developed the tcio command to "buffer up" data transfer between the backup command and the cartridge tape drive. Instead of redirecting the output of the backup command straight to the device, it is piped through tcio to enable streaming. tcio can be used with cpio as well as with fbackup. Examples Make relative backup on cartridge tape /dev/rct/0s0: # find . -print | cpio -o | tcio -o /dev/rct/0s0 Back up /home to cartridge tape: # fbackup -f - -i /home | tcio -o /dev/rct/0s0 Creating a Bootable System Backup HP-UX can create a bootable image of a disk using DDS. The following is an example of backing up an internal SCSI disk drive at target number 6. 1. Shut down to single user mode to minimize system activity: # shutdown 0 2. Clear any remaining data in the buffers: # sync;sync 3. Use dd to copy the LIF boot area: dd if=/usr/lib/uxbootlf of=/dev/rmt/0mnbs=2k 4. Again, sync the disk: # sync;sync 5. Use dd to append the disk data: # dd if=/dev/rdsk/c0t6d0of=/dev/rmt/0m bs=64 39

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Backups
39
For the
frecover -x
mode, the
-g
option is available. This allows you to use a graph file in the same way as
with
fbackup
. The file format of the graph file is the same. This is useful for partial recoveries.
Examples
Recover all files from medium-density tape:
# frecover -rf /dev/rmt/0m
Recover all files indicated in
/usr/local/graph
:
# frecover -x -g /usr/local/graph -f /dev/rmt/0m
Retrieve an index of files from tape and put it in
/tmp/index
:
# frecover -I /tmp/index -f /dev/rmt/0m
HP-UX and Cartridge Tapes: tcio
The wear and tear on a cartridge tape drive due to redirection is extensive because the data transfer rates
between the host computer and the cartridge tape drive are not synchronized. Thus, HP developed the
tcio
command to ²buffer up³ data transfer between the backup command and the cartridge tape drive. Instead of
redirecting the output of the backup command straight to the device, it is piped through
tcio
to enable
streaming.
tcio
can be used with
cpio
as well as with
fbackup
.
Examples
Make relative backup on cartridge tape
/dev/rct/0s0:
# find . -print | cpio -o | tcio -o /dev/rct/0s0
Back up
/home
to cartridge tape:
# fbackup -f - -i /home | tcio -o /dev/rct/0s0
Creating a Bootable System Backup
HP-UX can create a bootable image of a disk using DDS. The following is an example of backing up an
internal SCSI disk drive at target number 6.
1.
Shut down to single user mode to minimize system activity:
# shutdown 0
2.
Clear any remaining data in the buffers:
# sync;sync
3.
Use
dd
to copy the LIF boot area:
dd if=/usr/lib/uxbootlf of=/dev/rmt/0mnbs=2k
4.
Again, sync the disk:
# sync;sync
5.
Use
dd
to append the disk data:
# dd if=/dev/rdsk/c0t6d0of=/dev/rmt/0m bs=64