- 论坛徽章:
- 3
|
不知道有没有这样的实施案例能共享下?
我稍微改了下sybase_mydb_backup.cmd脚本 就一个地方没改,标注红色的。
@set SYBASE=C:\Sybase
@set SYBSERVER=CONTOSOSYBASE
@set DATABASE_NAME=testdb
set CMD_LINE=%SYBASE%%OCS_QUAL%\bin\isql -Usa -Pcontoso -I%SYBASE%\ini\sql.ini -S%SYBSERVER% -i .\syb_%DATABASE_NAME%_dump
if "%SYBACKUP_SCHED%" == "database_dump" goto dbdump 这个DATABASE_DUMP我没改,不知道这个需要如何更改呢? 改好后备份是成功的。
但是本机恢复的时候报错
2012-1-31 15:50:17 - Info nbjm(pid=2292) starting backup job (jobid=7) for client contoso-sybase, policy restore_sybase, schedule full
2012-1-31 15:50:17 - Info nbjm(pid=2292) requesting MEDIA_SERVER_WITH_ATTRIBUTES resources from RB for backup job (jobid=7, request id:{B0B457D5-F1BF-42E6-8AAB-AA89DCED364A})
2012-1-31 15:50:17 - requesting resource sybase
2012-1-31 15:50:17 - requesting resource contoso-nbu.NBU_CLIENT.MAXJOBS.contoso-sybase
2012-1-31 15:50:17 - requesting resource contoso-nbu.NBU_POLICY.MAXJOBS.restore_sybase
2012-1-31 15:50:17 - granted resource contoso-nbu.NBU_CLIENT.MAXJOBS.contoso-sybase
2012-1-31 15:50:17 - granted resource contoso-nbu.NBU_POLICY.MAXJOBS.restore_sybase
2012-1-31 15:50:17 - granted resource sybase
2012-1-31 15:50:18 - estimated 0 Kbytes needed
2012-1-31 15:50:18 - Info nbjm(pid=2292) started backup job for client contoso-sybase, policy restore_sybase, schedule full on storage unit sybase
2012-1-31 15:50:18 - started process bpbrm (3332)
2012-1-31 15:50:19 - Info bpbrm(pid=3332) contoso-sybase is the host to backup data from
2012-1-31 15:50:19 - Info bpbrm(pid=3332) reading file list from client
2012-1-31 15:50:19 - connecting
2012-1-31 15:50:21 - Info bpbrm(pid=3332) starting bphdb on client
2012-1-31 15:50:21 - connected; connect time: 00:00:02
2012-1-31 15:50:23 - Info bphdb(pid=3244) Backup started
2012-1-31 15:50:24 - Error bpbrm(pid=3332) from client contoso-sybase: ERR - failed executing command <"C:\Program Files\VERITAS\NetBackup\DbExt\Sybase\sybase_mydb_restore.cmd">
2012-1-31 15:50:24 - Error bpbrm(pid=3332) from client contoso-sybase: ERR - exit status: <-1>
2012-1-31 15:50:24 - Error bpbrm(pid=3332) from client contoso-sybase: ERR - bphdb exit status = 29: failed trying to exec a command
2012-1-31 15:50:26 - end writing
2012-1-31 15:50:31 - Info bphdb(pid=3244) done. status: 29: failed trying to exec a command
failed trying to exec a command(29)
sybase_mydb_restore.cmd 我改了一下的东西
@set SYBASE=C:\Sybase
@set SYBSERVER=CONTOSOSYBASE
set CMD_LINE=%SYBASE%%OCS_QUAL%\bin\isql -Usa -Pcontoso -I%SYBASE%\ini\sql.ini -S%SYBSERVER% -i %LOADDB%
期他都是默认
不知道SYBASE的恢复能不能用NBU CLIENT直接图行化呢? 如果用脚本,如果有3此备份,我想回复第二次备份,应该如何确认?
|
|