osrestore [options] -f backup-file [-f backup-file]... [pathname_ translation]...
Specify a pathname_translation when you want to restore
Scanning the list from right to left, find the lowest incremental backup level greater than 0, in this case, the level 2 backup made on Thursday. To restore databases to their state as of the backup on Friday, apply the level 0 backup and the incremental backups made at levels 2 and 4, in that order.
osrestore -f backup.img foo::/db foo::/restore.db
In the first interaction, the command line specifies the -t option, which instructs the osrestore utility to list the databases in the specified backup image. Nothing is actually restored. The only database in the backup image is mckinley:e:\r4tsd_data\arch.0. This is a Windows NT database, and the following example shows that the osrestore utility on a UNIX system translates it to mckinley:e:/r4tsd_data/arch.0. The utility automatically translates back slashes (\) to slashes (/).
% osrestore -f /tmp/my.img -t
Recovering from volume #1 (/tmp/my.img)... mckinley:e:/r4tsd_data/arch.0 Closing volume #1 (/tmp/my.img). %In the second interaction, the command line specifies the pathname translation mckinley:e:/r4tsd_data/ /recovery. This instructs the osrestore utility to copy all files in the backup image in the mckinley:e:/r4tsd_data/ directory to the /recovery directory on the local machine. In this example, this is only arch.0.
% osrestore -f /tmp/my.img mckinley:e:/r4tsd_data/ /recovery
Recovering from volume #1 (/tmp/my.img)... Restoring 3175 sectors to database "vancouver:/recovery/arch.0" Recovered to time Fri Mar 3 14:07:24 1999 Do you wish to restore from any additional incremental backups? (yes/no):
no
Closing volume #1 (/tmp/my.img). %
The examples are UNIX examples; however, they would be the same on any platform except the file name format.
% osrestore -t -f /backup.img
::eudyp:/test/ ::eudyp:/test: data1.odb data2.odb data3.odb ::cleopat:/results/ ::cleopat:/results: r1.odb r2.odb r3.odbThe following example indicates that the backup image contains six file databases. Three are in the /test directory; they were backed up on host eudyp. Three are in the /results directory; they were backed up on host cleopat.
% osrestore -f backup.img eudyp:/ kellen:/ cleopat:/ eudyp:/
restoring "::eudyp:/test/data1.odb" to "::kellen:/test/data1.odb"
restoring "::eudyp:/test/data2.odb" to "::kellen:/test/data2.odb"
restoring "::eudyp:/test/data3.odb" to "::kellen:/test/data3.odb"
restoring "::cleopat:/results/r1.odb" to "::eudyp:/results/r1.odb"
restoring "::cleopat:/results/r2.odb" to "::eudyp:/results/r2.odb"
restoring "::cleopat:/results/r3.odb" to "::eudyp:/results/r3.odb"
% osrestore -f backup.img eudyp:/test kellen:/test-copy
restoring "::eudyp:/test/data1.odb" to "::kellen:/test-copy/data1.odb"
restoring "::eudyp:/test/data2.odb" to "::kellen:/test-copy/data2.odb"
restoring "::eudyp:/test/data3.odb" to "::kellen:/test-copy/data3.odb"
% osrestore -f backup.img eudyp:/test/data1.odb eudyp:/tmp
restoring "::eudyp:/test/data1.odb" to "::eudyp:/tmp/data1.odb"
% osrestore -f backup.img eudyp:/test/data1.odb cleopat:/example \ eudyp:/test eudyp:/test
restoring "::eudyp:/test/data1.odb" to "::cleopat:/example/data1.odb"In this example, the order of the pathname translations is important. Specify specific pathnames before you specify directories that include those pathnames.
restoring "::eudyp:/test/data2.odb" to "::eudyp:/test/data2.odb"
restoring "::eudyp:/test/data3.odb" to "::eudyp:/test/data3.odb"
% osrestore -f backup.img
restoring "::eudyp:/test/data1.odb" to "::eudyp:/test/data1.odb" restoring "::eudyp:/test/data2.odb" to "::eudyp:/test/data2.odb" restoring "::eudyp:/test/data3.odb" to "::eudyp:/test/data3.odb" restoring "::cleopat:/results/r1.odb" to "::cleopat:/results/r1.odb" restoring "::cleopat:/results/r2.odb" to "::cleopat:/results/r2.odb" restoring "::cleopat:/results/r3.odb" to "::cleopat:/results/r3.odb"
% osrestore -f back.img eudyp:/test /examples cleopat:/results /examples
restoring "::eudyp:/test/data1.odb" to "::twinkie:/examples/data1.odb" restoring "::eudyp:/test/data2.odb" to "::twinkie:/examples/data2.odb" restoring "::eudyp:/test/data3.odb" to "::twinkie:/examples/data3.odb" restoring "::cleopat:/results/r1.odb" to "::twinkie:/examples/r1.odb" restoring "::cleopat:/results/r2.odb" to "::twinkie:/examples/r2.odb" restoring "::cleopat:/results/r3.odb" to "::twinkie:/examples/r3.odb"
Updated: 03/11/99 11:19:07