Examples

These examples assume the following:

  • You are running the StorageNodeCmd utility on a machine where a storage node is installed.
  • The name of the storage node is My Node.
  • The storage node manages a centralized vault whose name is My Vault.
  Listing the vault's archives  

The following command shows the list of archives that are stored in the vault.

StorageNodeCmd /list /vault:”bsp://My Node/My Vault”

The output will look similar to this:

  Archive name: My Archive  
  type: image; owner: domain/sample_user; machine: sample-comp; date: 6/27/2009 11:39:10 AM; used_space: 1000000000; id: 183DE307-BC97-45CE-9AF7-60945A568BE8  
  Archive name: My new Archive  
  type: file; owner: domain/sample_user; machine: sample-comp; date: 6/27/2009 11:50:10 AM; used_space: 2000000000; id: 283DE307-BC97-45CE-9AF7-60945A568BE8  
  Archive name: The last Archive  
  type: image; owner: domain/sample_user; machine: sample-comp; date: 6/29/2009 11:20:10 AM; used_space: 3000000000; id: 383DE307-BC97-45CE-9AF7-60945A568BE8  
  Listing the backups of an archive  

The following command shows the list of backups that are contained in the My Archive archive. The archive is specified here by its Universally Unique Identifier (UUID) instead of its name—see the output in the previous example.

StorageNodeCmd /list /vault:”bsp://My Node/My Vault” /arc_id:183DE307-BC97-45CE-9AF7-60945A568BE8

The output will look similar to this:

  Pit number: 1  
  type: image; kind: full; date: 6/27/2009 11:39:10 AM  
  Pit number: 2  
  type: image; kind: incremental; date: 6/27/2009 11:43:13 AM  
  Pit number: 5  
  type: image; kind: incremental; date: 6/28/2009 11:12:19 AM  

The pit number identifies a backup within the archive. By using pit numbers, you can export individual backups of an archive instead of exporting it as a whole.

  Exporting an archive  

The following command exports the My Archive archive to the C:\Archives folder.

StorageNodeCmd /export /vault:”bsp://My Node/My Vault” /arc:”My Archive” /target_vault:”C:\Archives”

  Exporting the newest backup of an archive  

The following command exports the newest backup of the My Archive archive. Such backup is identified by the pit number 0 in addition to its own pit number. The exported backup is saved in the C:\Archives folder in the Exported Archive archive.

StorageNodeCmd /export /vault:”bsp://My Node/My Vault” /arc:”My Archive” /include_pits:0 /target_vault:”C:\Archives” /target_arc:”Exported Archive”

  Importing an archive  

The following command imports the Archive 1 archive from the C:\Archives folder to the vault.

StorageNodeCmd /import /vault:”C:\Archives” /arc:”Archive 1″ /target_vault:”bsp://My Node/My Vault”

Examples