Let me start by saying I am not a Unix/Linux or any other kind if x guy.
That being said, Here is and explaination of manual duplication given to me by someone else. I have used this to create my own Windows batch files for duplication from my VTL to tape. I am told that I can schedule these via NTScheduler but I prefer to run manually as VLT tapes written vary day to day for me.
Hope this helps you folks, I am attempting to get Vault so I can have NB do this for me.
Tape image duplication, or as its sometimes called, cloning, takes place at this company
via Unix "cron" jobs that are scheduled to run once a week after the Full backups take
place over any given weekend.
Listing root's 'crontab' file for 'backup server01' shows the following.
#ident "@(#)root 1.19 98/07/06 SMI" /* SVr4.0 1.1.3.1 */
#
# The root crontab should be used to perform accounting data collection.
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
.
...
....
...
15 5 * * 1 /usr/openv/netbackup/bin/goodies/clone_sql_65_mis
15 19 * * 1 /usr/openv/netbackup/bin/goodies/clone_nt_os
5 5 * * 2 /usr/openv/netbackup/bin/goodies/clone_unix_servers
5 17 * * 2 /usr/openv/netbackup/bin/goodies/clone_herc_hydra
Looking at the manual page for 'crontab' the first five fields of any crontab
entry represent the days/time when jobs are scheduled to run.
(minute) (hour) (day of month 1-31) (month of year 1-12) (day of week, 0-6 0=Sunday)
The first of the four crontab entries listed here say to run the "clone_sql_65_mis"
script at 5:15am on Monday of any month of the year. The idea here was to
schedule a clone process early in the morning and one later in the day.
Each of the internally developed clone scripts uses the Netbackup supplied binary
called "bpduplicate". Listed below is the contents of a clone script called
by cron.
#!/bin/sh
#
# This script is run by cron to duplicate "full" backup images
# that match the following criteria.
#
# created within the last 72 hours
# members of the 'sql_65_mis' class
#
# See man page for bpduplicate for more information.
/usr/openv/netbackup/bin/admincmd/bpduplicate -dstunit bak01_dlt
-dp duplicate_full -hoursago 72 -st FULL -class sql_65_mis
-mpx -L /tmp/duplicate_log.sql_65_mis
Listed here is the syntax for the 'bpduplicate' binary.
bpduplicate -dstunit -dp
-hoursago <# hours> -st -shost -L