On Sun, 21 Aug 2011 18:22:15 -0500 Stefan Johnson <[email protected]> wrote:
> > # restore -xf root.dump './etc/pf.conf' > > restore: ./etc: File exists > > You have not read any tapes yet. > > Unless you know which volume your file(s) are on you should start > > with the last volume and work towards the first. > > Specify next volume #: > > > > And here I'm failing, why volume? > > > > Thank you for tips. > > > > jirib > > > > > I believe restore with -x flag always asks for which volume, even if > it is just a dump to a file. Just tell it to use volume 1 (type 1 > then hit enter.) > > Also, I notice in your dump example, you dumped the raw device. > You can just tell it to use "/" instead, and it will dump just fine > as well. Hi, it would be nice if `restore' would know if it is restoring from a file or from a tape. Even `-s 1' doesn't supress prompting for volume number. This is from AIX man page: -s SeekBackup Specifies the backup to seek and restore on a multiple-backup tape archive. The -s flag is only applicable when the archive is written to a tape device. To use the -s flag properly, a no-rewind-on-close and no-retension-on-open tape device, such as /dev/rmt0.1 or /dev/rmt0.5, must be specified. If the -s flag is specified with a rewind tape device, the restore command displays an error message and exits with a nonzero return code. If a no-rewind tape device is used and the -s flag is not specified, a default value of -s 1 is used. The value of the SeekBackup parameter must be in the range of 1 to 100 inclusive. It is necessary to use a no-rewind-on-close, no-retension-on-open tape device because of the behavior of the -s flag. The value specified with -s is relative to the position of the tapes read/write head and not to an archives position on the tape. For example, to restore the first, second, and fourth backups from a multiple-backup tape archive, the respective values for the -s flag would be -s 1, -s 1, and -s 2. I cannot do C so I cannot send a diff :( jirib

