Chatta subito con l'assistenza
Chat con il supporto

NetVault 11.4.5 - CLI Reference Guide

Introduction Getting started Using the command-line utilities Using the nvreport utility

nvjobresume

Resumes a job that was previously placed on hold. Only one job can be resume with a single use of this command.

Table 56. nvjobresume

-servername

Specifies the name of the NetVault Backup Server that administers the job.

This option is required when a remote server administers the job. It can be omitted when a local server administers the job. The server name is case‑sensitive.

-jobid

Specifies the ID of the job that you want to resume. Only one Job ID can be specified with this option.

-phaseid

Specifies the phase ID.

Use this option if you want to resume a particular job phase. If you omit this option, all known phases of the specified job are resumed.

-version

Displays the build date of the NetVault Backup distribution installed on the machine.

nvjobstart

Runs a job using its Job ID, phase number, and instance number.

Table 57. nvjobstart

-servername

Specifies the name of the NetVault Backup Server that administers the job.

This option is required when a remote server administers the job. It can be omitted when a local server administers the job. The server name is case‑sensitive.

-jobid

Specifies the ID of the job that you want to run.

-phaseid

Specifies the Phase ID. The default value for this option is 1.

-instance

Specifies the Instance ID.

If this option is not specified or the specified instance does not exist, the last instance of the job is started.

-wait

Waits until the task has completed.

-version

Displays the build date of the NetVault Backup distribution installed on the machine.

By default, the nvjobstart utility returns the following messages depending on the job exit codes.

0

Job completed successfully

1

Job failed with error: ‘Job Failed’

This message is returned for the following job completion states:

If you enable the option nvjobstart Enhanced Job Completion Status, the utility returns the following codes and messages:

0

Job completed successfully

1

Job Failed

2

Job Completed with Warnings

3

Job Aborted

4

Job Stopped

5

Job Died

-1

Job Failed with Undefined Error

For more information about this option, see the Quest NetVault Backup Administrator’s Guide.

nvpolicy

Performs the following tasks:

Table 60. nvpolicy

-list

Displays existing policies. To view the list of jobs defined for a policy, use this option with the policy name. For example, the following command lists all jobs defined for policy “p1”:

nvpolicy -list p1

-delete

Deletes the specified policy.

-ack

Acknowledges errors.

-addclient

Adds clients to the policy definition. For example, the following command adds clients “Client-A” and “Client-B” to the policy “p1”:

nvpolicy -addclient p1 Client-A Client-B

-addgroup

Adds client groups to the policy definition. For example, the following command adds client groups “Group-A” and “Group-B” to the policy “p1”:

nvpolicy -addgroup p1 Group-A Group-B

-create

Creates a policy using details specified in the policy definition file. The file must be created in the following format:

Example:

 

NOTE: The Source option is only required when defining a job for the Plug-in for Consolidation and or Plug-in for Data Copy.

A policy can contain one or more job definitions. For multiple jobs, include a [Job] section for each job as shown in the following example.

Example:

-state

Displays the current state of a policy — Dormant, Active, or Quiescing.

quiesce

Places an active policy in a quiesced state.

nvrestore

Performs the following tasks:

To list the restore jobs administered by the NetVault Backup Server, use the following options.

-list

Displays all restore jobs administered by the NetVault Backup Server.

-client

Specifies the name of the target NetVault Backup Client. Use this option filter the list by the specified client.

-plugin

Specifies the plug-in name. Use this option to filter the list by the specified plug-in.

-select

Specifies the name of the Restore Selections Set. Use this option to filter the list by the specified set.

NOTE: The -plugin and -select options are mutually exclusive and cannot be used together in the same instance of a nvrestore -list command.

-startdate

Specifies the start date. Use this option to display the jobs performed between the start date and end date. If the end date is not specified, all jobs starting from the start date up to the last job are listed. The valid format for the start date is DD/MM/YY.

-enddate

Specifies the end date. Use this option to display the jobs performed between the start date and end date. If the start date is not specified, all jobs starting from the first job up to the specified end data are listed. The valid format for the start date is DD/MM/YY.

To create a restore job, use the following options.

-create

Creates and optionally schedules a restore job.

Specify the ID of the backup saveset that you want to restore. In addition to the saveset number, you can preface the saveset number with the target client name and the plug-in used, each separated with a colon.

Example:

59:NVSERVER:filesystem

This format helps in reducing the time taken to locate the saveset.

-title

Specifies the name of the job.

-path

Specifies the directory or file that you want to restore. Provide the full path to the items.

-relocate

Relocates the selected items to the specified path or directory. Ensure that the specified path is created before you run the restore job.

-rename

Renames the selected items. You can use this option if you do not want to overwrite existing files or directories.

-run

Runs the job. Without this option, the restore job is created and saved, but it is not scheduled to run.

-wait

Waits until the task has completed.

With this option, the utility return a result of “job succeeded” or “job failed” before releasing the prompt for additional commands.

To create a restore job from a job definition file, use the following options.

-create

Creates and optionally schedules a restore job.

Specify the ID of the backup saveset that you want to restore. In addition to the saveset number, you can preface the saveset number with the target client name and the plug‑in used, each separated with a colon.

Example: 59:NVSERVER:filesystem

This format helps in reducing the time taken to locate the saveset.

-definition

Specifies the name of the job definition file. Provide the full file path.

The definition file includes a list of files or directories that you want to include or exclude. It must use the following format:

Relocate=<Relocation path> (Ensure that the path is created before you run the job.)
Rename=<New name for the item> (You can use this option if you do not want to overwrite existing files or directories.)

-run

Runs the job. Without this option, the restore job is created and saved, but not scheduled to run.

-wait

Waits until the task has completed.

With this option, the utility return a result of “job succeeded” or “job failed” before releasing the prompt for additional commands.

The following rules apply to Restore Definition File:

For the Rename and Relocate options, a separate [Include] stanza must be created for each item. Correct
Both the Rename and Relocate options can be specified within the same instance of the [Include] stanza to perform both operations for a single file or directory.
path=C:\data\new (data that you want to restore and its original path)
relocate=C:\saved\data (the relocation path)
rename=C:\saved\data\old (the relocation path along with the new directory name)
The relocation directory must exist on the target system before you run the restore job. You can create and save the job without using the “-run” parameter and establish a new directory for relocation in the command, but when you runt the job, the target relocation directory must exist.
Related Documents

The document was helpful.

Seleziona valutazione

I easily found the information I needed.

Seleziona valutazione