Quantcast
Channel: Software Communities : Popular Discussions - NetVault
Viewing all articles
Browse latest Browse all 1582

NVBU CLI Restore to an Alternate Server

$
0
0

Recently a NetVault Backup user asked us how to use the CLI to restore to an alternate server. To do this, you'll need to run the following:

 

C:\Program Files\Quest Software\NetVault Backup\util>nvsetcreate -setname restore1 -type RS -client "NVBU_Server" -plugin "File System" -saveset 447 -include "C:\netvault3" -restoretarget "SQL_Server_Prod"

Created set 'restore1'

 

Once the set is created, you can load it via the GUI and it does indeed have the other client targeted. However, you still need to use nvjobcreate to create the job via CLI and then nvjobstart to kick off the job. This will do the trick.

 

C:\Program Files\Quest Software\NetVault Backup\util>nvjobcreate -servername "NVBU_Server" -jobtitle testrestore -type restore -selectionsetname restore1

Submitting job...

Waiting for confirmation that job was submitted successfully....

Job successfully submitted!

job 'testrestore' has been assigned the job id '640'

 

C:\Program Files\Quest Software\NetVault Backup\util>nvjobstart -jobid 640

Submitting job...

Sent start job '640' request

Job started successfully


Viewing all articles
Browse latest Browse all 1582

Trending Articles