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

Backups

Page 42 highlights

7. Backups IRIX Backups on IRIX are supported on cartridge tape, DAT, and DLTs. Backups can also be accomplished through a network connection. While there is specialized software available to do local and remote backups, we will only be covering the standard utilities on IRIX and HP-UX. The following IRIX utilities can be used for performing backups: • System Manager backup capabilities (normally the best way to perform backups in either IRIX or HP- UX): This approach uses the cpio utility to perform the actual backup. In HP-UX, use SAM, and select Backup and Recovery to do either an interactive or automated backup. • Backup and Restore utilities: Command line front ends to the cpio utility. Also available in HP-UX. • dump/xfsdump and restore/xfsrestore: Dump and restore are standard UNIX utilities and are available in HP-UX also. In IRIX they do not work on XFS file systems. Xfsdump and xfsrestore are the equivalent commands for XFS file systems. • cpio: A standard UNIX command available in either IRIX or HP-UX. • tar: A standard UNIX command available in either IRIX or HP-UX. • dd: Not recommended as a backup strategy for either OS. HP-UX fbackup In addition to the standard UNIX utilities, HP-UX, like IRIX, has a proprietary scheme for backups. This scheme includes the fbackup and frecover commands. The basic syntax of the fbackup command is: # fbackup -f Device [-0-9] [-u] [-i path] [-e path] [-g graph] Because fbackup does not by default write to standard output, the -f option is not optional. Device can be a file, device file, or a remote device file. A remote device file takes the form machine:/dev/device_name. You can specify a hyphen (-) as the device to have fbackup write to standard output. The [0-9] option provides for incremental backups: an n level backup includes all files modified since the last n - 1 level backup. The -i, -e, and -g options provide a means of specifying which portions of a file system you want backed up. The backup command backs up either entire file systems or individual files. fbackup allows you to include a file system with the -i option and exclude portions of it with the -e option. For example: # fbackup -f /dev/rmt/Om -0 -i /usr -e /usr/tmp This command initiates a full backup to tape of the /usr file system with the exception of the /usr/tmp directory tree. You can also place your inclusion and exclusion parameters in a graph file. A graph file is a text file containing the path names of the files and directories you want either included or excluded from your backup. These path names are preceded with either an i (denoting inclusion) or an e (denoting exclusion). For example, if your graph file contains the following lines: i /usr e /usr/tmp e /usr/lib i /home e /home/guest 37

  • 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

37
7. Backups
IRIX
Backups on IRIX are supported on cartridge tape, DAT, and DLTs.
Backups can also be accomplished
through a network connection.
While there is specialized software available to do local and remote
backups, we will only be covering the standard utilities on IRIX and HP-UX.
The following IRIX utilities can be used for performing backups:
System Manager backup capabilities (normally the best way to perform backups in either IRIX or HP-
UX):
This approach uses the
cpio
utility to perform the actual backup.
In HP-UX, use SAM, and
select
Backup and Recovery
to do either an interactive or automated backup.
Backup and Restore utilities:
Command line front ends to the
cpio
utility.
Also available in HP-UX.
dump/xfsdump
and
restore/xfsrestore
:
Dump
and
restore
are standard UNIX utilities and are
available in HP-UX also.
In IRIX they do not work on XFS file systems.
Xfsdump
and
xfsrestore
are the equivalent commands for XFS file systems.
cpio:
A standard UNIX command available in either IRIX or HP-UX.
tar:
A standard UNIX command available in either IRIX or HP-UX.
dd:
Not recommended as a backup strategy for either OS.
HP-UX
fbackup
In addition to the standard UNIX utilities, HP-UX, like IRIX, has a proprietary scheme for backups. This
scheme includes the
fbackup
and
frecover
commands. The basic syntax of the
fbackup
command is:
# fbackup -f Device [-0-9] [-u] [-i path] [-e path] [-g graph]
Because
fbackup
does not by default write to standard output, the
-f
option is not optional.
Device
can be
a file, device file, or a remote device file. A remote device file takes the form
machine:/dev/device_name
.
You can specify a hyphen (
-
)
as the device to have
fbackup
write to standard output. The
[0-9]
option
provides for incremental backups: an
n
level backup includes all files modified since the last
n
- 1 level
backup.
The
-i
,
-e
, and
-g
options provide a means of specifying which portions of a file system you want backed
up. The
backup
command backs up either entire file systems or individual files.
fbackup
allows you to
include a file system with the
-i
option and exclude portions of it with the
-e
option. For example:
# fbackup -f /dev/rmt/Om -0 -i /usr -e /usr/tmp
This command initiates a full backup to tape of the
/usr
file system with the exception of the
/usr/tmp
directory tree. You can also place your inclusion and exclusion parameters in a graph file. A graph file is a
text file containing the path names of the files and directories you want either included or excluded from
your backup. These path names are preceded with either an
i
(denoting inclusion) or an
e
(denoting
exclusion). For example, if your graph file contains the following lines:
i /usr
e /usr/tmp
e /usr/lib
i /home
e /home/guest