Veritas-bu

[Veritas-bu] Policy Export / Import?

2006-09-07 14:00:41
Subject: [Veritas-bu] Policy Export / Import?
From: dave-bu at graniteweb.com (David Rock)
Date: Thu, 7 Sep 2006 13:00:41 -0500
* WEAVER, Simon <simon.weaver at astrium.eads.net> [2006-09-07 12:36]:
> 
> Jonathan
> One would guess you can copy / paste the policies over yes. But cannot
> comment 100% as I dont have 6.0, nor intend to at this stage.
>  
> But in principle, you can copy the files over. I would make a backup of your
> CLASS folder on your Server JUST in case :-)


You could script something to parse the bppllist output to rebuild new
policies using the CLI.  Unfortunately, I never got the opportunity to
finalize this myself, but here are a few commands to look at.  It will
depend on your willingness to spend the time doing it, and whether the
work to write the script is more than the work to just create the new
policies. :-(


USAGE: bpplinfo policy_name -L|-l|-U [-v] [-M master_server,...]
       bpplinfo policy_name -set|-modify [-v] [-M master_server,...]
           [-active | -inactive] [-pt policy_type]
           [-ut] [-ef effective_time]
           [-residence label]
           [-pool label]
           [-priority priority]
           [-rfile flag] [-blkincr flag]
           [-multiple_streams flag] [-keyword "keyword phrase"]
           [-encrypt flag]
           [-collect_tir_info value] [-compress flag]
           [-crossmp flag] [-disaster flag] [-follownfs flag]
           [-policyjobs max_jobs(0=unlimited)]
           [-chkpt flag] [-chkpt_intrvl minutes]
       Valid values for policy_type:
           Standard  Apollo-wbak  Oracle  Informix-On-BAR
           NetWare  MS-Windows-NT  OS/2  MS-Exchange-Server
           DB2  AFS  Lotus-Notes  FlashBackup-Windows
           Vault

USAGE: bpplsched policy_name [-v] [-M master_server...] [-L|-l|-U]
                  [-label sched_label]
               bpplsched policy_name [-v] [-M master_server...]
                  -delete sched_label ...
               bpplsched policy_name [-v] [-M master_server...] -deleteall
               bpplsched policy_name [-v] [-M master_server...]
                  -add sched_label [-st sched_type]
                  [-freq frequency]
                  [-mpxmax mpx_factor]
                  [-number_copies number]
                  [-synthetic (0 | 1)]
                  [-rl retention_level[,rl-copy2, ..., rl-copyn]]
                  [-residence storage_unit_label[,stunit-copy2,... 
stunit-copyn]]
                  [-pool volume_pool_label[,pool-copy2,... pool-copyn]]
                  [-fail_on_error (0 | 1)[,(0 | 1),...,(0 | 1)]]
                  [-window start duration]
                  [-cal 0/1/2]
                  [-ut] [-incl mm/dd/yyyy] [-excl mm/dd/yyyy]
                  [-weekday day_name week] [-dayomonth 1-31 or l]

       Valid values for mpx_factor: 1..32

USAGE: bpplschedrep policy_name sched_label
                   [-M master_server...] [-v]
                   [-st sched_type] [-freq frequency]
                   [-mpxmax mpx_factor] [-cal 0/1/2]
                   [-incl mm/dd/yyyy] [-excl mm/dd/yyyy]
                   [-delincl mm/dd/yyyy] [-delexcl mm/dd/yyyy]
                   [-weekday day_name week] [-dayomonth 1-31 l]
                   [-delweekday day_name week] [-deldayomonth 1-31 l]
                   [-ci] [-ce] [-cw] [-cd]
                   [-number_copies number]
                   [-synthetic (0 | 1)]
                   [-pfi_fast_recovery (0 | 1)]
                   [-rl retention_level[,rl-copy2 ,..., rl-copyn]]
                   [-fail_on_error (0 | 1)[,(0 | 1),...,(0 | 1)]]
                   [-residence storage_unit_label[,stunit-copy2,... 
stunit-copyn]]
                   [-pool volume_pool_label[,pool-copy2,... pool-copyn]]
                   [-(0..6) start duration]

       Valid values for mpx_factor: 1..32

bpplschedwin: <policy name> <sched label> [-verbose]
            [-M <master_server,...,master_server>]
            [-(0..6) <seconds past midnight> <duration seconds>]
            [-close <day number (0..6)>]
    used to modify an existing schedule window

USAGE: bpplinclude policy_name [-v] [-M master_server,...] -L|-l
       bpplinclude policy_name [-v] [-M master_server,...] -add path_name ...
       bpplinclude policy_name [-v] [-M master_server,...] -add -f filename
       bpplinclude policy_name [-v] [-M master_server,...] -delete path_name ...
       bpplinclude policy_name [-v] [-M master_server,...] -delete -f filename
       bpplinclude policy_name [-v] [-M master_server,...]
          -modify {old_path_name new_path_name} ...

       Note: paths with wildcards must be quoted.

USAGE: bpplclients policy_name | {-allunique [-pt policy_type]}
           [-L|-l|-U|-noheader]
           [-M master_server...] [-v]

       bpplclients policy_name [-M master_server...] [-v]
           {-add host_name hardware os [priority]} |
           {-delete host_name...} |
           {-modify host_name [-hardware hardware] [-os os]
            [-priority priority]} |
           {-rename old_host_name new_host_name [-hardware hardware]
            [-os os]  [-priority priority]}

       Valid values for policy_type:
           Standard  Apollo-wbak  Oracle  Informix-On-BAR
           NetWare  MS-Windows-NT  OS/2  MS-Exchange-Server
           DB2  AFS  Lotus-Notes  FlashBackup-Windows
           Vault



-- 
David Rock
david at graniteweb.com