HP Visualize c160L IRIX to HP-UX Migration Guide - Page 43

frecover

Page 43 highlights

Backups then the /usr file system will be backed up, with the exception of the /usr/tmp and /usr/lib directory trees. The /home file system will be backed up, with the exception of the /home/guest directory tree. If the name of this graph file is /usr/local/backup/graph1, then your command will look something like: # fbackup -f /dev/rmt/0m -0 -g /usr/local/backup/graph1 fbackup uses the /var/adm/fbackupfiles/dates file to record backup information for incremental backups. This file is not updated unless you use the -u option, which is only available with the -g option. Examples Perform a level-8 backup to /dev/rmt/0m using the graph file /usr/local/graph, and update the /var/adm/fbackupfiles/dates file: # fbackup -f /dev/rmt/0m -8 -u -g /usr/local/graph Back up everything under the current directory except subdir to /dev/rmt/0m: # fbackup -f /dev/rmt/0m -i . -e ./subdir Back up everything under the current directory except subdir to /dev/rmt/0m on system roberts: # fbackup -f roberts:/dev/rmt/0m -i . -e ./subdir frecover The frecover command is the counterpart to the fbackup command. frecover can only restore files backed up with fbackup. There are four basic modes of operation for frecover. Recover everything on a backup volume: # frecover -r Extract certain files from a backup volume: # frecover -x Read the index from the backup volume and write it to path: # frecover -I path Restart an interrupted recovery: # frecover -R path frecover -r and frecover -x have the following options in common: frecover -x | -r [ -fhoFX ] frecover defaults to /dev/rmt/0mn, but you can use -f to specify a different device, including a remote device. The -h option is used only to restore directories, not the files within those directories. The -o option is used to force frecover to overwrite a newer file with an older one, which frecover does not normally do. The -F option causes frecover to strip all the leading directories from the path names of files being recovered, allowing you to restore files backed up with full path names to different directories. The -x option makes all recovered files relative to the current directory. If, for example, you restored the file /usr/bin/vi and your current directory was /home/root, then the restored file's new path would be /home/root/usr/bin/vi. 38

  • 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
38
then the
/usr
file system will be backed up, with the exception of the
/usr/tmp
and
/usr/lib
directory trees.
The
/home
file system will be backed up, with the exception of the
/home/guest
directory tree. If the name
of this graph file is
/usr/local/backup/graph1
, then your command will look something like:
# fbackup -f /dev/rmt/0m -0 -g /usr/local/backup/graph1
fbackup
uses the
/var/adm/fbackupfiles/dates
file to record backup information for incremental backups.
This file is not updated unless you use the
-u
option, which is only available with the
-g
option.
Examples
Perform a level-8 backup to
/dev/rmt/0m
using the graph file
/usr/local/graph
, and update the
/var/adm/fbackupfiles/dates
file:
# fbackup -f /dev/rmt/0m -8 -u -g /usr/local/graph
Back up everything under the current directory except
subdir
to
/dev/rmt/0m
:
# fbackup -f /dev/rmt/0m -i . -e ./subdir
Back up everything under the current directory except
subdir
to
/dev/rmt/0m
on system
roberts
:
# fbackup -f roberts:/dev/rmt/0m -i . -e ./subdir
frecover
The
frecover
command is the counterpart to the
fbackup
command.
frecover
can only restore files backed
up with
fbackup
. There are four basic modes of operation for
frecover
.
Recover everything on a backup volume:
# frecover –r
Extract certain files from a backup volume:
# frecover –x
Read the index from the backup volume and write it to path:
# frecover -I path
Restart an interrupted recovery:
# frecover -R path
frecover -r
and
frecover -x
have the following options in common:
frecover -x | -r [ -fhoFX ]
frecover
defaults to
/dev/rmt/0mn
, but you can use
-f
to specify a different device, including a remote
device. The
-h
option is used only to restore directories, not the files within those directories. The
-o
option
is used to force
frecover
to overwrite a newer file with an older one, which
frecover
does not normally do.
The
-F
option causes
frecover
to strip all the leading directories from the path names of files being
recovered, allowing you to restore files backed up with full path names to different directories. The
-x
option makes all recovered files relative to the current directory. If, for example, you restored the file
/usr/bin/vi
and your current directory was
/home/root
, then the restored file±s new path would be
/home/root/usr/bin/vi
.