Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell NetWorker 19.9 Administration Guide

Cloning save sets from the command prompt with filters

You can use the nsrclone command on the NetWorker server to manually clone save sets, based on user defined criteria or identifiers. Use the mminfo command to determine which identifiers you want to use to define a list of save sets to clone. Identifiers include the client name, the save set name, the backup level, and the number of valid copies or clones not yet created in the target pool.

UNIX man page and the NetWorker Command Reference Guide provides detailed information about the nsrclone and the mminfo commands.

The following examples illustrate the nsrclone command:

NOTE:Optionally, use the nsrlogin command to authenticate a user and generate a token for the nsrclone and mminfo commands. Using nsrlogin for authentication and authorization provides more information.
  • To clone all save sets created in the last 24 hours for clients mars and jupiter with save set names /data1 and /data2 for only backup level full, type:

    nsrclone -S -e now -c mars -c jupiter -N /data1 -N /data2 -l full

  • To clone all save sets that were not copied to the default clone pool in a previous partially aborted nsrclone session, type:

    nsrclone -S -e now -C 1

  • To clone all save sets that were not copied to the default clone pool in a previous partially aborted nsrclone session and then assign the save sets a browse and retention policy value that differs from the original save set, type:

    nsrclone -S -e now -C 1 -y 12/12/2016

    nsrclone -S -e now -C 1 -y 12/12/2022 -w 12/12/2021

Using query filter (-q) to specify savesets

You can clone specific savesets that are a part of policy, workflow or action by using filters to the nsrclone command. You can provide any combination of the 3 new query options.
  • Standalone query options:

    nsrclone -q "policy=Gold" -S -t "1 month ago"

    nsrclone -q "workflow=NMC server backup" -S -t "1 month ago"

    nsrclone -q "action=backup" -S -t "1 month ago"

  • Combination of 2 options:

    nsrclone -q "action=backup" -q "policy=Gold" -S -t "1 month ago"

    nsrclone -q "workflow=NMC server backup" -q "policy=Gold" -S -t "1 month ago"

    nsrclone -q "workflow=NMC server backup" -q "action=backup" -S -t "1 month ago"
  • Combination of 3 options:

    nsrclone -q "action=backup" -q "policy=Gold" -q "workflow=NMC server backup" -S -t "1 month ago"

User can add pre-existing group query options along with the newly added query options . For example, -q group=<>

nsrclone -q "group=DPG" -q "action=backup" -q "policy=Gold" -q "workflow=NMC server backup" -S -t "1 month ago"

The following table provides the descriptions of the options that are used in the nsrclone command example.

Table 1. List of nsrclone options and their descriptionsThe following table provides the descriptions of the options that are used in the nsrclone command example.
Options Description
-S Specifies that the subsequent nsrclone options are save set identifiers and not volumes names.
-C less_than_clone_copies_value Specifies the upper non-inclusive integer limit such that only save sets with a lesser number of clone copies in the target clone pool are considered when nsrclone searches for save sets to clone. Use this option when you retry an aborted clone operation.
NOTE:NetWorker does not consider the following save sets when calculating the copies value for a save set:
  • Original save set.
  • AFTD read-only mirror clone. NetWorker counts the read or write primary clone only because there is only one physical clone copy between the related clone pair.
  • Recyclable, aborted, incomplete, and unusable clone save sets.

Requires the -t or -e option.

-l level_or_range_value Specifies the backup level to search for when nsrclone determines which save sets to clone:
  • Manual—For ad-hoc or client-initiated save sets.
  • full—For level full save sets.
  • incr—For level incremental save sets.

You can specify more than one level by using multiple -l options.

Requires the -t or -e option.

-N save_set_name Specifies the save set name to search for when nsrclone determines which save sets to clone. Use multiple -N options to specify more than one save set name.

Requires the -t or -e option.

-c client_name Specifies the name of the client to search for when nsrclone determines which save sets to clone. Use multiple -c options to specify more than one client name.

Requires the -t or -e option.

-y date

Specifies the retention policy date to assign to the clone
save set.

Use a time and date format that is accepted by the nsr_getdate program. UNIX man page and the NetWorker Command Reference Guide provides detailed information about nsr_getdate.
-w date

Specifies the browse policy date to assign to the clone save set.

Use a time and date format that is accepted by the nsr_getdate program. UNIX man page and the NetWorker Command Reference Guide provides detailed information about nsr_getdate.
NOTE:

To set a browse period that is different from the retention period, ensure that the group associated with the workflow does not include client types other than File System or NDMP.

-A action_parallelism Specifies the maximum number of concurrent operations for the nsrclone action

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\