Clone a file from a snapshot

You can clone a file from a snapshot.

About this task

Procedure

  1. Open a secure shell (SSH) connection to any node in the cluster and log in.
  2. To view the contents of the snapshot you want to restore a file or directory from, run the ls command for a subdirectory of 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. Clone a file from the snapshot by running the cp command with the -c option.

    For example, the following command clones test.txt from Snapshot2014Jun04:

    cp -c /ifs/.snapshot/Snapshot2014Jun04/archive/test.txt \
    /ifs/archive/test_clone.text