cancel
Showing results for 
Search instead for 
Did you mean: 

Storage Type swith with bpduplicate from command line, windows?

smckelvey
Level 5

We use a batch file to duplicate images from the day before, for creating a copy to send offsite. It's called by a Scheduled Task each morning.

bpduplicate -altreadhost balt-srvr-nbu -dp offsite_weekly -dstunit balt-srvr-nbu-lto -hoursago 18 -L e:\dup_logs\current_backup_log.txt -st INCR -M balt-srvr-nbu

I have a few questions about the switch for the Storage type (-st):

  • If I use -st FULL or -st INCR, I'm assuming SQL backups would not be included in the duplication?
  • What text would I use for the -st command to include for SQL backups ("Automatic Backup", "Application Backup")?
  • is there a way to exclude a Storage Type? For example, if I wanted to Duplicate everything, except  FULL backups.

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Andy_Welburn
Level 6

each 'schedule type'.

Looking at the synopsis of the command, there is no indication at all that you can run for more than one schedule type at a time.

 

/usr/openv/netbackup/bin/admincmd/bpduplicate [-number_copies number]
[-dstunit destination_storage_unit_label [,copy2,...,copyn] [-dp
destination_volume_pool_name [,copy2,...,copyn] [-p | -pb | -PD | -PM]
[-Bidfile file_name] [-v] [-local] [-client name] [-st sched_type]
[-sl sched_label] [-L output_file [-en]] [-shost source_host] [-policy
name] [-s date] [-e date] [-pt policy_type] [-hoursago hours] [[-cn
copy_number] | [-primary]] [-M master_server] [-altreadhost hostname]
[-backupid backup_id] [-id media_id] [-rl
retention_level[,rl-copy2,...,rl-copyn]] [-fail_on_error
0|1[,...,0|1]] [-mpx] [-priority number] [-set_primary copy_index]
[-owner media_share_grp[,share_group_copy2,... share_group_copyn]]

View solution in original post

4 REPLIES 4

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Extract from Commands Manual:

-st sched_type
Search for backups to duplicate that the specified schedule type created.
The default is any schedule type.
Valid values are:
FULL (full backup)
INCR (differential-incremental backup)
CINC (cumulative-incremental backup)
UBAK (user backup)
UARC (user archive)
NOT_ARCHIVE (all backups except user archive)

 

***** EDIT*****

Database backup (e.g. SQL) is stored in image database as UBAK (user backup)

smckelvey
Level 5

So, use -st UBAK to duplicate the SQL backups?

Any chance I can put more than one Storage Type in the command? If so, how would it be written? -st UBAK INCR or -st UBAK -st INCR

smckelvey
Level 5

still hoping that someone can answer this:
 

"Any chance I can put more than one Storage Type in the command? If so, how would it be written? -st UBAK INCR or -st UBAK -st INCR"

Thanks in advance.

Andy_Welburn
Level 6

each 'schedule type'.

Looking at the synopsis of the command, there is no indication at all that you can run for more than one schedule type at a time.

 

/usr/openv/netbackup/bin/admincmd/bpduplicate [-number_copies number]
[-dstunit destination_storage_unit_label [,copy2,...,copyn] [-dp
destination_volume_pool_name [,copy2,...,copyn] [-p | -pb | -PD | -PM]
[-Bidfile file_name] [-v] [-local] [-client name] [-st sched_type]
[-sl sched_label] [-L output_file [-en]] [-shost source_host] [-policy
name] [-s date] [-e date] [-pt policy_type] [-hoursago hours] [[-cn
copy_number] | [-primary]] [-M master_server] [-altreadhost hostname]
[-backupid backup_id] [-id media_id] [-rl
retention_level[,rl-copy2,...,rl-copyn]] [-fail_on_error
0|1[,...,0|1]] [-mpx] [-priority number] [-set_primary copy_index]
[-owner media_share_grp[,share_group_copy2,... share_group_copyn]]