Consultor Eletrônico



Kbase P74413: Error 1618 trying to automate prorest
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/30/2004
Status: Unverified

FACT(s) (Environment):

UNIX

SYMPTOM(s):

Trying to automate prorest from a probkup file

Do you want to over write it? [y
]: Restore failed. (1618)

Database being restored already exists

Restoring from multiple volumes using a script

CAUSE:

There is no "y" at the beginning of the input file to answer that you want to overwrite the existing database.

FIX:

Add a "y" to the input file you are using for the restore.

For example, to restore from a backup that created a .bkp file and 4 volumes, the input file should look like this (assuming that you do want to overwrite the existing database):

input.txt

y
<path>/test2
<path>/test3
<path>/test4
<path>/test5

Now run the command:

prorest test test.bkp < input.txt

The output will show:

test already exists.
Do you want to over write it? [y
]: Start of extending target DB to needed size...
This is a full backup of /users/ts/bshane/test.db. (6759)
This backup was taken Tue Mar 30 14:56:01 2004. (6760)
The blocksize is 1024. (6994)
It will require a minimum of 4211 blocks to restore. (6763)
Start of restoring the target DB...

Please enter next device/file name or type "quit" to exit:

Please enter next device/file name or type "quit" to exit:

Please enter next device/file name or type "quit" to exit:

Please enter next device/file name or type "quit" to exit:
Read 2976 db blocks in 00:00:04