Thursday, July 19, 2012

NetBackup Commands Tutorial




Backup Commands:

C:\Program Files\VERITAS\NetBackup\bin>bpbackup.exe -i -p server -s test -h veritas-server -S veritas-server -w 19:34:00 -L c:\job.txt

monitor:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpdbjobs

Check Errors:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bberror -S 25 -r

Cancel,Restart,Suspend delete jobs:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpdbjobs  -cancel -suspend -delete -restat JOB_ID

Starting Netbackup server:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpup

stopping the netbackup server:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpdown


Getting Current Configuration



C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpgetconfig

Labeling a media:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bplabel
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bplabel.exe -m 1 -d 4mm -p test -n tape1
 -host veritas-server

List backedup files:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bplist –C [client] –S [master server ]  -t [policy-type] –k policy –b | -c | -u


Netbackup media status:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedialist

List Policy Info:
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpplinfo server –L | -l | -U

List the Policy information:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bppllist –allpolicies –L
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bppllist –byclient [client-name] –L
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bppllist [policy-name] –L

Create storage unit:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpstuadd –label sent –path c:\senthil

Create new policy:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bppolicynew senthil

Add Storage Unit in to that policy:

C:\Program Files\VERITAS\NetBackup\bin\admincmd>

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpplsched cmc -add testcmc -wind
ow 13 1 -residence cmc

Add clients:
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpplclients cmc -add veritas-ser
ver windows windowsNT 0

Add files:
C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpplinclude cmc -add c:\ams\02-1
42r0.pdf




No comments:

Post a Comment