cancel
Showing results for 
Search instead for 
Did you mean: 

About bpstart_notify.bat.

hantaeyung
Level 3
Partner

Hi all.

 

I want to netbackup running to backup and then bpstart_notify script create test folder or file(example -> test.txt) which in C:\etc.

 

What should i add sentence to bpstart_notify.bat file?

 

Help! Let me know...

 

@REM $ Id: bpstart_notify.bat, V 1.3 8 January 2006 PM 08 hour 46 minutes 43 seconds $
@REM ************************************************ ***************************
@REM * $ VRTScprght: Copyright (C) 2016 Veritas Technologies LLC. All rights reserved VT25-0977-2658-84-51-3 $ * reserves
@REM ************************************************ ***************************
@REM Ecpyrght
@REM
@REM Bpstart_notify.bat
@REM
@REM This script when bpbkar to have been started on the client is called by NetBackup
@REM To do a backup or archive.
@REM
@REM This script, will receive the six parameters.
@ REM% 1 = CLIENT_NAME
@ REM% 2 = POLICY_NAME
@ REM% 3 = SCHEDULE_NAME
@ REM% 4 = SCHEDULE_TYPE, following one: FULL, INCR, CINC, UBAK, UARC
@ REM% 5 = STATUS, always 0
@ REM% 6 = RESULT_FILE
@REM
This script must be present on the inner in the same directory as the other parts of the NetBackup @REM
@REM Client binary files (bpstart_notify.bat of install_path \ NetBackup of \ bin \ of).
@REM Also, must be the root user can run.
@REM Is terminated with a 0 if successful
@REM
@REM Naming conventions:
There are three versions of the name that @REM script can be used.
Start notifies a script that can be used 1 version, termination, notification that the script used @REM
@REM Another, or they will be able to both use the same version.
@REM
Use "" that have been NetBackup policies and @REM substitute "of sched policy"
@REM Schedule name. "Bpstart" can be replaced with a "bpend".
@REM Bpstart_notify.policy.sched.bat
@REM Bpstart_notify.policy.bat
@REM Bpstart_notify.bat
@REM
@REM Result file:
@REM Result file name, it will be dependent on the script file name.
@REM Example:
@REM Script name: Result file name:
@REM Bpstart_notify.policyA.schedB.bat BPSTART_RES.policyA.schedB
@REM Bpstart_notify.policyB.bat BPSTART_RES.policyB
BPEND_RES bpend_notify.bat @REM
@REM
@REM Note: You can write what is the standard output and standard error output, backup problems.
@REM Output, you need to redirect the results to a file.
@REM
@REM ------------------------------------------------ --------------------
@REM Main script starts here
@REM Is a simple script that records the type of backup to be performed along the this
And @REM with other relevent information (client name, such as policy name)
@REM Adds the information to the results file
@REM ------------------------------------------------ --------------------
@if "%4" == "FULL" goto FULL
@if "%4" == "CINC" goto CINC
@if "%4" == "" goto FAIL


Backup, full, and since not a cumulative incremental, print @ REM general message
@echo backup / restore, and began BP_RES.txt \ bpres =% 6 >> bottle to schedule% 3 and status% 5 Use the policy% 2% 1
@echo 0 >>% 6
@GOTO: EOF
@REM Exit 0
: FULL
@echo full backup, it began BP_RES.txt \ bpres =% 6 >> bottle to schedule% 3 and status% 5 Use the policy% 2% 1

@echo 0 >>% 6
@GOTO: EOF
@REM Exit 0
@: CINC
@echo cumulative incremental backup, began BP_RES.txt \ bpres =% 6 >> bottle to% 1 using the policy% 2% 3 schedule and status% 5
@echo 0 >>% 6
GOTO: EOF
@REM Exit 0
: It will fail
@REM No schedule type of information was not sent. Failure has occurred. Writes the status 1 to the result file.
@echo 1 >>% 6
@GOTO: EOF
@REM Exit 0

 

10 REPLIES 10

mph999
Level 6
Employee Accredited

If all you want is the script to create a test folder, then all you need is :

mkdir c:\test_directory

You could in fact, delete all the other lines, leaving just the command above.

hantaeyung
Level 3
Partner

i did delete all the other lines, leaving just th c:\test command line.

 

but backup was running, scrpit didn't create test folder...

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

You have created a similar thread about 2 days ago?

Seems you have now deleted that discussion an recreated it?

Have you created bpbkar log folder on client (which seems to be the master here)? 
bpbkar log will tell us how the batch file is interpreted.

 

hantaeyung
Level 3
Partner

To Marianne.

 

Yeah i was write 3 days ago similar thread.

 

I have bpbkar log folder on master server(Windows 2008 R2) that is client server too.

 

I can show my bpstart_nofity, bpend_notify, and bpbkar log..

 

This issue is so stifling to me..

 

Please tell me how to do.

 

bpbkar log - ALL_ADMINS.061516_00001

10:03:25.540 [5864.5572] <4> ov_log::OVInit: INF - Starting log file: C:\Program Files\Veritas\NetBackup\logs\BPBKAR\061516.log
10:03:25.540 [5864.5572] <4> ov_log::OVInit: GENERAL Log Level (Effective): 0
10:03:25.540 [5864.5572] <4> ov_log::OVInit: TCP Log Level (Effective): 0
10:03:25.540 [5864.5572] <8> OVLog: BPBKAR  NetBackup Backup/Archive  7.7GA  [Jan 11 2016]
10:03:25.540 [5864.5572] <8> OVLog: Copyright ⓒ 1993 - 2016 Symantec Corporation, All Rights Reserved. All Rights Reserved.
10:03:25.540 [5864.5572] <2> WinMain: BPBKAR_VERBOSE Debug log level: Actual=0, Effective=0
10:03:25.540 [5864.5572] <2> WinMain: DAT - _pgmptr = 'C:\Program Files\Veritas\NetBackup\bin\bpbkar32.exe'
10:03:25.540 [5864.5572] <2> WinMain: DAT - lpCmdLine = '-r 604800 -ru root -dt 0 -to 0 -bpstart_time 1465952903 -clnt win-master -class example -sched full -st FULL -bpstart_to 300 -bpend_to 300 -read_to 300 -blks_per_buffer 512 -use_otm -nfsok -b win-master_1465952602 -kl 28 -WOFB_enabled -WOFB_fim 1 -WOFB_usage 0 -WOFB_error 0 -ct 13 -shm -use_ofb '
10:03:25.541 [5864.5572] <2> date_debug: DAT - timezone: 대한민국 표준시, offset=-32400, dst: NONE
10:03:25.543 [5864.5572] <2> date_debug: DAT - current time: 1465952605, 2016-06-15 오전 10:03:25
10:03:25.543 [5864.5572] <2> date_debug: DAT - 01/01/94 UCT:  757382400, 1994-01-01 오전 9:00:00
10:03:25.543 [5864.5572] <2> date_debug: DAT - 07/01/94 UCT:  773020800, 1994-07-01 오전 9:00:00
10:03:25.543 [5864.5572] <2> WinMain: DAT - standard input handle = 616
10:03:25.544 [5864.5572] <2> WinMain: DAT - standard input handle is NOT resilient socket.
10:03:25.544 [5864.5572] <2> WinMain: DAT - standard output handle = 344
10:03:25.544 [5864.5572] <2> WinMain: DAT - standard output handle is NOT resilient socket.
10:03:25.544 [5864.5572] <2> WinMain: DAT - standard error handle = 540
10:03:25.544 [5864.5572] <2> WinMain: DAT - standard error handle is NOT resilient socket.
10:03:25.724 [5864.5572] <4> tar_backup::V_SetupJobData: INF - dwJobData: ffffffff
10:03:25.724 [5864.5572] <4> tar_backup::V_SetupJobData: INF -     dwJob: ffffffff
10:03:25.743 [5864.5572] <4> dos_backup::V_PreProcessing: INF - backup privileges enabled, previous = 0
10:03:25.743 [5864.5572] <4> dos_backup::V_PreProcessing: INF - restore privileges enabled, previous = 0
10:03:25.743 [5864.5572] <4> dos_backup::V_PreProcessing: INF - security privileges enabled, previous = 0
10:03:25.743 [5864.5572] <4> dos_backup::V_PreProcessing: INF - tcb privileges enabled, previous = 0
10:03:25.743 [5864.5572] <4> dos_backup::V_PreProcessing: INF - create token privileges enabled, previous = 0
10:03:25.743 [5864.5572] <4> dos_backup::V_PreProcessing: INF - user name: root
10:03:25.743 [5864.5572] <4> dos_backup::V_PreProcessing: INF - no access token: scheduled backup
10:03:25.776 [5864.5572] <2> ov_log::V_GlobalLog: WRN - ubsVerifyMIS():Microsoft Exchange Information Store is not installed.
10:03:25.777 [5864.5572] <2> ov_log::V_GlobalLog: INF - BEDS_Init() Enter InitFlags:0x0
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: C:
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: EFI>System>Partition
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Microsoft Terminal Services
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Microsoft Windows Network
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: VMware 공유 폴더
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Web Client Network
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: WIN-MASTER\Microsoft SQL Server Instances
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpChildDleInfo() Child DLE Device Name: WIN-MASTER\MICROSOFT##SSEE
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpChildDleInfo() Child DLE Device Name: WIN-MASTER\SQLEXPRESS
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: System?State
10:03:27.815 [5864.5572] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Active Directory Application Mode
10:03:27.824 [5864.5572] <2> tar_base::V_vTarMsgW: INF - BACKUP START 5864
10:03:27.824 [5864.5572] <2> tar_base::V_vTarMsgW: JBD - change time comparison:<disabled>
10:03:27.824 [5864.5572] <2> tar_base::V_vTarMsgW: JBD - archive bit processing:<enabled>
10:03:27.907 [5864.5572] <2> tar_backup::V_SetupProcessContinue: TAR - CONTINUE BACKUP received
10:03:27.907 [5864.5572] <2> tar_base::V_vTarMsgW: INF - CONTINUE BACKUP message received
10:03:27.907 [5864.5572] <2> tar_backup_tfi::setupFileDirectives: TAR - backup filename = C:\etc
10:03:27.907 [5864.5572] <4> tar_base::startKeepaliveThread: INF - set keepalive thread interval to 60 seconds
10:03:27.913 [5864.5572] <2> tar_backup_vxbsa::add: INF - called with 'C:\etc'
10:03:27.926 [5864.5572] <2> _expand_root: INF - checking for root expansion:<C:\etc>
10:03:27.946 [5864.5572] <2> _fix_registry: INF - checking for registry expansion:<C:\etc>
10:03:28.068 [5864.5572] <4> dos_backup::V_VerifyFileSystem: INF - corrected name:<C:\etc>
10:03:28.178 [5864.5572] <4> dos_backup::V_VerifyFileList: INF - UBS Local Type for 'C:\etc' --> 10020002
10:03:28.178 [5864.5572] <2> VxCJUtilGetParams: INF - GetVolumePathName for <C:\etc> returned <C:\>
10:03:28.178 [5864.5572] <2> VxCJUtilGetParams: INF - GetVolumeNameForVolumeMountPoint for <C:\> returned <\\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\>
10:03:28.178 [5864.5572] <2> tar_base::V_vTarMsgW: JBD - not using change journal data for <C:\etc>: not enabled
10:03:28.178 [5864.5572] <4> dos_backup::V_Initialize: INF - did not create change journal collection, not needed
10:03:58.193 [5864.5572] <4> backup_create: INF - NetBackup Temp Directory: 'C:\Program Files\Veritas\\NetBackup\Temp'
10:03:58.589 [5864.5572] <4> tar_backup_tfi::UpdateExcludeListWithVHD: INF - UpdateExludeListWithVHD begin
10:03:58.635 [5864.5572] <4> tar_backup_tfi::backup_arg_state: INF - remember start error count: 0
10:03:58.635 [5864.5572] <4> tar_backup_tfi::backup_arg_state: INF - remember start fatal count: 0
10:03:58.635 [5864.5572] <4> dos_backup::tfs_scanstart: INF - starting scan for file directive:<C:\etc>
10:03:58.635 [5864.5572] <4> dos_backup::tfs_scanstart: INF - starting scan using name:<C:\etc>
10:03:58.635 [5864.5572] <4> dos_backup::tfs_scanstart: INF - in 'backup' mode
10:03:58.637 [5864.5572] <2> tar_base::V_vTarMsgW: INF - Enabling volume snapshots for (C:\etc), please wait...
10:03:58.665 [5864.5572] <4> V_DetermineMountInfo: INF - Checking Volume \\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\ for '\etc'
10:03:58.665 [5864.5572] <4> V_DetermineMountInfo: INF -   Adding NTFS Volume C:\ ==> \\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\
10:03:58.665 [5864.5572] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - ======================================================================
10:03:58.665 [5864.5572] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - Attempting to create snapshots for 'C:\etc'
10:03:58.665 [5864.5572] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - CREATE request: "C:\Program Files\Veritas\NetBackup\bin\bpfis.exe" create -owner NBU -WOFB -fim VSS:prov_type=1,snap_attr=0,max_snapshots=1 -id win-master_1465952602 -nbu_version 124911616 "C:\etc"
10:04:08.919 [5864.5572] <4> V_Snapshot::V_Snapshot_AddMappings: INF - input parameters:  source path:<C:\etc> snap path:<\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\etc> mount path:<(null)>
10:04:08.919 [5864.5572] <4> V_Snapshot::V_GetSourceVolume: INF - input parameters: source:<C:\etc> snapshot:<\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\etc>
10:04:08.957 [5864.5572] <4> V_Snapshot::V_Snapshot_AddMappings: INF - Volume Snapshot Mapping: \\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\ --> GLOBALROOT\Device\HarddiskVolumeShadowCopy1
10:04:08.957 [5864.5572] <4> V_Snapshot::V_Snapshot_ParseBpfisOutput: INF - Snapshot creation, FIS_ID: win-master_1465952602
10:04:08.957 [5864.5572] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - Snapshot creation was successful
10:04:08.957 [5864.5572] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - Snapshot provider: VSS
10:04:08.957 [5864.5572] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - ======================================================================
10:04:08.958 [5864.5572] <2> tar_base::V_vTarMsgW: INF - Volume snapshots enabled
10:04:09.250 [5864.5572] <4> dos_backup::tfs_scannext: INF - no more path list entries
10:04:09.250 [5864.5572] <4> tar_backup::backup_endarg_state: INF - finish error count: 0
10:04:09.250 [5864.5572] <4> tar_backup::backup_endarg_state: INF - finish fatal count: 0
10:04:09.250 [5864.5572] <4> V_Snapshot::V_Snapshot_Destroy: INF - Attempting to destroy volume snapshots: bpfis delete -id win-master_1465952602 -copy 1 -WOFB
10:04:12.250 [5864.5572] <4> V_Snapshot::V_Snapshot_Destroy: INF - Snapshot Destroy EXIT STATUS 0: the requested operation was successfully completed
10:04:12.272 [5864.5572] <2> tar_base::backup_finish: TAR - backup:                     7 files
10:04:12.272 [5864.5572] <2> tar_base::backup_finish: TAR - backup:          file data:         16 bytes
10:04:12.272 [5864.5572] <2> tar_base::backup_finish: TAR - backup:         image data:      19456 bytes
10:04:12.272 [5864.5572] <2> tar_base::backup_finish: TAR - backup:       elapsed time:         47 secs          413 bps
10:04:12.272 [5864.5572] <4> tar_backup::backup_done_state: INF - number of file directives not found: 0
10:04:12.272 [5864.5572] <4> tar_backup::backup_done_state: INF -     number of file directives found: 1
10:04:12.277 [5864.5572] <4> send_msg_to_monitor: INF - in send_msg_to_monitor()...
10:04:12.278 [5864.5572] <2> tar_base::V_vTarMsgW: INF - EXIT STATUS 0: the requested operation was successfully completed
10:04:15.282 [5864.5572] <4> dos_backup::ClearDFSRArchiveBits: INF - no DFSR file list was created, No bits cleared.
10:04:15.282 [5864.5572] <4> dos_backup::ClearDFSRArchiveBits: INF - no DFSR file list was created, No bits cleared.
10:04:15.282 [5864.5572] <4> dos_backup::tfs_reset: INF - Snapshot deletion start
10:04:15.282 [5864.5572] <4> OVStopCmd: INF - EXIT - status = 0
10:04:15.282 [5864.5572] <2> tar_base::V_Close: closing...
10:04:15.282 [5864.5572] <4> dos_backup::tfs_reset: INF - Snapshot deletion start
10:04:15.322 [5864.5572] <2> ov_log::V_GlobalLog: INF - BEDS_Term(): enter - InitFlags:0x00000101
10:04:15.322 [5864.5572] <2> ov_log::V_GlobalLog: INF - BEDS_Term(): ubs specifics: 0x001d0000
10:04:16.514 [5864.5572] <4> OVShutdown: INF - Finished process
10:04:16.514 [5864.5572] <4> WinMain: INF - Exiting C:\Program Files\Veritas\NetBackup\bin\bpbkar32.exe
10:08:23.113 [4008.4512] <4> ov_log::OVInit: INF - Starting log file: C:\Program Files\Veritas\NetBackup\logs\BPBKAR\061516.log
10:08:23.113 [4008.4512] <4> ov_log::OVInit: GENERAL Log Level (Effective): 0
10:08:23.113 [4008.4512] <4> ov_log::OVInit: TCP Log Level (Effective): 0
10:08:23.113 [4008.4512] <8> OVLog: BPBKAR  NetBackup Backup/Archive  7.7GA  [Jan 11 2016]
10:08:23.113 [4008.4512] <8> OVLog: Copyright ⓒ 1993 - 2016 Symantec Corporation, All Rights Reserved. All Rights Reserved.
10:08:23.113 [4008.4512] <2> WinMain: BPBKAR_VERBOSE Debug log level: Actual=0, Effective=0
10:08:23.113 [4008.4512] <2> WinMain: DAT - _pgmptr = 'C:\Program Files\Veritas\NetBackup\bin\bpbkar32.exe'
10:08:23.113 [4008.4512] <2> WinMain: DAT - lpCmdLine = '-r 604800 -ru root -dt 0 -to 0 -bpstart_time 1465953201 -clnt win-master -class example -sched full -st FULL -bpstart_to 300 -bpend_to 300 -read_to 300 -blks_per_buffer 512 -use_otm -nfsok -b win-master_1465952901 -kl 28 -WOFB_enabled -WOFB_fim 1 -WOFB_usage 0 -WOFB_error 0 -ct 13 -shm -use_ofb '
10:08:23.114 [4008.4512] <2> date_debug: DAT - timezone: 대한민국 표준시, offset=-32400, dst: NONE
10:08:23.114 [4008.4512] <2> date_debug: DAT - current time: 1465952903, 2016-06-15 오전 10:08:23
10:08:23.114 [4008.4512] <2> date_debug: DAT - 01/01/94 UCT:  757382400, 1994-01-01 오전 9:00:00
10:08:23.114 [4008.4512] <2> date_debug: DAT - 07/01/94 UCT:  773020800, 1994-07-01 오전 9:00:00
10:08:23.114 [4008.4512] <2> WinMain: DAT - standard input handle = 436
10:08:23.116 [4008.4512] <2> WinMain: DAT - standard input handle is NOT resilient socket.
10:08:23.116 [4008.4512] <2> WinMain: DAT - standard output handle = 344
10:08:23.116 [4008.4512] <2> WinMain: DAT - standard output handle is NOT resilient socket.
10:08:23.116 [4008.4512] <2> WinMain: DAT - standard error handle = 544
10:08:23.116 [4008.4512] <2> WinMain: DAT - standard error handle is NOT resilient socket.
10:08:23.118 [4008.4512] <4> tar_backup::V_SetupJobData: INF - dwJobData: ffffffff
10:08:23.118 [4008.4512] <4> tar_backup::V_SetupJobData: INF -     dwJob: ffffffff
10:08:23.129 [4008.4512] <4> dos_backup::V_PreProcessing: INF - backup privileges enabled, previous = 0
10:08:23.129 [4008.4512] <4> dos_backup::V_PreProcessing: INF - restore privileges enabled, previous = 0
10:08:23.129 [4008.4512] <4> dos_backup::V_PreProcessing: INF - security privileges enabled, previous = 0
10:08:23.129 [4008.4512] <4> dos_backup::V_PreProcessing: INF - tcb privileges enabled, previous = 0
10:08:23.129 [4008.4512] <4> dos_backup::V_PreProcessing: INF - create token privileges enabled, previous = 0
10:08:23.129 [4008.4512] <4> dos_backup::V_PreProcessing: INF - user name: root
10:08:23.129 [4008.4512] <4> dos_backup::V_PreProcessing: INF - no access token: scheduled backup
10:08:23.130 [4008.4512] <2> ov_log::V_GlobalLog: WRN - ubsVerifyMIS():Microsoft Exchange Information Store is not installed.
10:08:23.130 [4008.4512] <2> ov_log::V_GlobalLog: INF - BEDS_Init() Enter InitFlags:0x0
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: C:
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: EFI>System>Partition
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Microsoft Terminal Services
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Microsoft Windows Network
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: VMware 공유 폴더
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Web Client Network
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: WIN-MASTER\Microsoft SQL Server Instances
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpChildDleInfo() Child DLE Device Name: WIN-MASTER\MICROSOFT##SSEE
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpChildDleInfo() Child DLE Device Name: WIN-MASTER\SQLEXPRESS
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: System?State
10:08:23.166 [4008.4512] <2> ov_log::V_GlobalLog: INF - DumpDleInfo() DLE Device Name: Active Directory Application Mode
10:08:23.175 [4008.4512] <2> tar_base::V_vTarMsgW: INF - BACKUP START 4008
10:08:23.177 [4008.4512] <2> tar_base::V_vTarMsgW: JBD - change time comparison:<disabled>
10:08:23.178 [4008.4512] <2> tar_base::V_vTarMsgW: JBD - archive bit processing:<enabled>
10:08:23.178 [4008.4512] <2> tar_backup::V_SetupProcessContinue: TAR - CONTINUE BACKUP received
10:08:23.178 [4008.4512] <2> tar_base::V_vTarMsgW: INF - CONTINUE BACKUP message received
10:08:23.178 [4008.4512] <2> tar_backup_tfi::setupFileDirectives: TAR - backup filename = C:\etc
10:08:23.178 [4008.4512] <4> tar_base::startKeepaliveThread: INF - set keepalive thread interval to 60 seconds
10:08:23.207 [4008.4512] <2> tar_backup_vxbsa::add: INF - called with 'C:\etc'
10:08:23.207 [4008.4512] <2> _expand_root: INF - checking for root expansion:<C:\etc>
10:08:23.260 [4008.4512] <2> _fix_registry: INF - checking for registry expansion:<C:\etc>
10:08:23.261 [4008.4512] <4> dos_backup::V_VerifyFileSystem: INF - corrected name:<C:\etc>
10:08:23.264 [4008.4512] <4> dos_backup::V_VerifyFileList: INF - UBS Local Type for 'C:\etc' --> 10020002
10:08:23.265 [4008.4512] <2> VxCJUtilGetParams: INF - GetVolumePathName for <C:\etc> returned <C:\>
10:08:23.265 [4008.4512] <2> VxCJUtilGetParams: INF - GetVolumeNameForVolumeMountPoint for <C:\> returned <\\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\>
10:08:23.265 [4008.4512] <2> tar_base::V_vTarMsgW: JBD - not using change journal data for <C:\etc>: not enabled
10:08:23.265 [4008.4512] <4> dos_backup::V_Initialize: INF - did not create change journal collection, not needed
10:08:31.959 [4008.4512] <4> backup_create: INF - NetBackup Temp Directory: 'C:\Program Files\Veritas\\NetBackup\Temp'
10:08:31.977 [4008.4512] <4> tar_backup_tfi::UpdateExcludeListWithVHD: INF - UpdateExludeListWithVHD begin
10:08:31.979 [4008.4512] <4> tar_backup_tfi::backup_arg_state: INF - remember start error count: 0
10:08:31.979 [4008.4512] <4> tar_backup_tfi::backup_arg_state: INF - remember start fatal count: 0
10:08:31.979 [4008.4512] <4> dos_backup::tfs_scanstart: INF - starting scan for file directive:<C:\etc>
10:08:31.979 [4008.4512] <4> dos_backup::tfs_scanstart: INF - starting scan using name:<C:\etc>
10:08:31.979 [4008.4512] <4> dos_backup::tfs_scanstart: INF - in 'backup' mode
10:08:31.981 [4008.4512] <2> tar_base::V_vTarMsgW: INF - Enabling volume snapshots for (C:\etc), please wait...
10:08:31.981 [4008.4512] <4> V_DetermineMountInfo: INF - Checking Volume \\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\ for '\etc'
10:08:31.981 [4008.4512] <4> V_DetermineMountInfo: INF -   Adding NTFS Volume C:\ ==> \\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\
10:08:31.981 [4008.4512] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - ======================================================================
10:08:31.981 [4008.4512] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - Attempting to create snapshots for 'C:\etc'
10:08:31.981 [4008.4512] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - CREATE request: "C:\Program Files\Veritas\NetBackup\bin\bpfis.exe" create -owner NBU -WOFB -fim VSS:prov_type=1,snap_attr=0,max_snapshots=1 -id win-master_1465952901 -nbu_version 124911616 "C:\etc"
10:08:37.157 [4008.4512] <4> V_Snapshot::V_Snapshot_AddMappings: INF - input parameters:  source path:<C:\etc> snap path:<\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy2\etc> mount path:<(null)>
10:08:37.157 [4008.4512] <4> V_Snapshot::V_GetSourceVolume: INF - input parameters: source:<C:\etc> snapshot:<\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy2\etc>
10:08:37.193 [4008.4512] <4> V_Snapshot::V_Snapshot_AddMappings: INF - Volume Snapshot Mapping: \\?\Volume{91d6bddf-11c2-11e6-a05c-806e6f6e6963}\ --> GLOBALROOT\Device\HarddiskVolumeShadowCopy2
10:08:37.193 [4008.4512] <4> V_Snapshot::V_Snapshot_ParseBpfisOutput: INF - Snapshot creation, FIS_ID: win-master_1465952901
10:08:37.193 [4008.4512] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - Snapshot creation was successful
10:08:37.193 [4008.4512] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - Snapshot provider: VSS
10:08:37.193 [4008.4512] <4> V_Snapshot::V_Snapshot_CreateSnapshot: INF - ======================================================================
10:08:37.197 [4008.4512] <2> tar_base::V_vTarMsgW: INF - Volume snapshots enabled
10:08:37.353 [4008.4512] <4> dos_backup::tfs_scannext: INF - no more path list entries
10:08:37.353 [4008.4512] <4> tar_backup::backup_endarg_state: INF - finish error count: 0
10:08:37.353 [4008.4512] <4> tar_backup::backup_endarg_state: INF - finish fatal count: 0
10:08:37.353 [4008.4512] <4> V_Snapshot::V_Snapshot_Destroy: INF - Attempting to destroy volume snapshots: bpfis delete -id win-master_1465952901 -copy 1 -WOFB
10:08:40.354 [4008.4512] <4> V_Snapshot::V_Snapshot_Destroy: INF - Snapshot Destroy EXIT STATUS 0: the requested operation was successfully completed
10:08:40.354 [4008.4512] <2> tar_base::backup_finish: TAR - backup:                     7 files
10:08:40.354 [4008.4512] <2> tar_base::backup_finish: TAR - backup:          file data:         16 bytes
10:08:40.354 [4008.4512] <2> tar_base::backup_finish: TAR - backup:         image data:      19456 bytes
10:08:40.354 [4008.4512] <2> tar_base::backup_finish: TAR - backup:       elapsed time:         17 secs         1144 bps
10:08:40.354 [4008.4512] <4> tar_backup::backup_done_state: INF - number of file directives not found: 0
10:08:40.354 [4008.4512] <4> tar_backup::backup_done_state: INF -     number of file directives found: 1
10:08:40.355 [4008.4512] <4> send_msg_to_monitor: INF - in send_msg_to_monitor()...
10:08:40.355 [4008.4512] <2> tar_base::V_vTarMsgW: INF - EXIT STATUS 0: the requested operation was successfully completed
10:08:42.366 [4008.4512] <4> dos_backup::ClearDFSRArchiveBits: INF - no DFSR file list was created, No bits cleared.
10:08:42.366 [4008.4512] <4> dos_backup::ClearDFSRArchiveBits: INF - no DFSR file list was created, No bits cleared.
10:08:42.366 [4008.4512] <4> dos_backup::tfs_reset: INF - Snapshot deletion start
10:08:42.366 [4008.4512] <4> OVStopCmd: INF - EXIT - status = 0
10:08:42.366 [4008.4512] <2> tar_base::V_Close: closing...
10:08:42.366 [4008.4512] <4> dos_backup::tfs_reset: INF - Snapshot deletion start
10:08:42.368 [4008.4512] <2> ov_log::V_GlobalLog: INF - BEDS_Term(): enter - InitFlags:0x00000101
10:08:42.368 [4008.4512] <2> ov_log::V_GlobalLog: INF - BEDS_Term(): ubs specifics: 0x001d0000
10:08:43.380 [4008.4512] <4> OVShutdown: INF - Finished process
10:08:43.403 [4008.4512] <4> WinMain: INF - Exiting C:\Program Files\Veritas\NetBackup\bin\bpbkar32.exe

 

 

 

 

bpstart_notify.example.full.bat

@REM $Id: bpstart_notify.bat,v 1.3 2006/08/01 20:46:43 $
@REM ***************************************************************************
@REM * $VRTScprght: Copyright (c) 2016 Veritas Technologies LLC. All rights reserved VT25-0977-2658-84-51-3 $ *
@REM ***************************************************************************
@REM ecpyrght
@REM
@REM bpstart_notify.bat
@REM
@REM   This script is called by NetBackup when bpbkar is started up on the client
@REM   to do a backup or archive.
@REM
@REM This script receives 6 parameters:
@REM   %1 = CLIENT_NAME
@REM   %2 = POLICY_NAME
@REM   %3 = SCHEDULE_NAME
@REM   %4 = SCHEDULE_TYPE, one of the following: FULL, INCR, CINC, UBAK, UARC
@REM   %5 = STATUS, always 0
@REM   %6 = RESULT_FILE
@REM  
@REM   The script must reside in in the same directory as the rest of the NetBackup
@REM   client binaries (install_path\netbackup\bin\bpstart_notify.bat). 
@REM   It must also be executable by the root user.
@REM   Should exit with 0 upon successful completion
@REM
@REM Naming conventions:
@REM   There are three different versions of names that the scripts can use. 
@REM   The start notify script may use one version and the end notify script may use
@REM   another, or they can both use the same version.
@REM 
@REM   Substitute "policy" with the NetBackup policy being used and "sched" with the
@REM   schedule name.  "bpstart" can be substituted with "bpend".
@REM   bpstart_notify.policy.sched.bat
@REM   bpstart_notify.policy.bat
@REM   bpstart_notify.bat 
@REM 
@REM Result files:
@REM   The result file names will be dependant on the script file names. 
@REM   Example:
@REM   Script name:                         Result file name:
@REM   bpstart_notify.policyA.schedB.bat    BPSTART_RES.policyA.schedB
@REM   bpstart_notify.policyB.bat           BPSTART_RES.policyB
@REM   bpend_notify.bat                     BPEND_RES
@REM     
@REM CAUTION: Writing anything to stdout or stderr will cause backup problems.
@REM          Output should be redirected to the results files.
@REM
@REM --------------------------------------------------------------------
@REM main script starts here
@REM This is a simple script that records what kind of backup will be done along
@REM with other relevent information (Client name, policy name, etc) and
@REM appends the information to the results file
@REM --------------------------------------------------------------------

@echo off mkdir C:\test\test1

 

bpend_notify.example.full.bat is similarity to bpstart_notify.example.full.bat.

 

 

 

hantaeyung
Level 3
Partner

.

mph999
Level 6
Employee Accredited

Try changing the line from this

@echo off mkdir C:\test\test1

To this

mkdir C:\test

 

You need to put the script in this directory

\install_path\netbackup\bin\bpstart_notify.bat

You can change the name of the script like this to run for a sprcific policy, policy/ schedule of all jobs

bpstart_notify.<policy>.<schedule>.bat  - run for a specific policy schedule
bpstart_notify.<policy>.bat    - run for a specific policy
bpstart_notify.bat   - run for all jobs

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
The script is not at all referenced in bpbkar log. There something wrong with the location, name or extention. Please double-check as follows: Open cmd prompt and cd to netbackup\bin ....\bin > dir bpstart*.* Please copy text output or take screenshot and post here. PS: In future, please post log files as .txt attachments.

Will_Restore
Level 6

bpend_notify.example.full.bat is similarity to bpstart_notify.example.full.bat

would only work if your Policy is named example and Schedule is named full

simplify and rename them for testing purposes:

bpend_notify.bat  and  bpstart_notify.bat

and make sure they are in the proper directory on the client.

hantaeyung
Level 3
Partner

To mph999 ,Marianne, Will Restore!

 

Thanks for all!

 

I have solved my problem with your helps ^^

 

Problem was too easy..

 

It was easy enough to sorry to everyone..

 

Problem, there is just a file name.

 

bpstart_notify.example.full batch file was already batch file. but i create file name adds bpstart_notify.example.full.bat.

 

So netbackup does not read bpstart_notify.example.full.bat.

 

I was rename to bpstart_nofify.example.full without .bat.

 

Rename to bpstart_notify.example.full and bpend_notify.example.full.

 

As a result create test folder on C:\.

 

Thanks for all again!!

 

PS. OK I will post log files as .txt attachments next time if i have question.

 

Appreciate always suppot to me.

 

 

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

I am surprised that it worked when you removed the .bat extention. 

Every bit of documentation for NBU on Windows says that the file must have .bat extention and this has been working for thousands of users over many years.

Herewith my own experience with bpstart_notify on Windows:
https://www.veritas.com/community/forums/backup-starting-client-side#comment-2962061 

As you never showed us from cmd what filenames looked like, we can only assume that something else was wrong with the filename.
My suspision is that Notepad has added a .txt extention that is by default hidden in Windows Explorer.