Restore a file or directory through a UNIX command line

You can restore a file or directory from a snapshot through a UNIX command line.

Procedure

  1. Open a connection to the cluster through a UNIX command line.
  2. Optional: To view the contents of the snapshot you want to restore a file or directory from, run the ls command for a directory contained in the snapshots root directory.
    For example, the following command displays the contents of the /archive directory contained in Snapshot2014Jun04:
    ls /ifs/.snapshot/Snapshot2014Jun04/archive
  3. Copy the file or directory by using the cp command.
    For example, the following command creates a copy of the file1 file:
    cp -a /ifs/.snapshot/Snapshot2014Jun04/archive/file1 \
     /ifs/archive/file1_copy