6-12 Sun StorEdge 5310 NAS Troubleshooting Guide December 2004
Accessing Checkpointed Data
Access to the checkpointed versions of directories and files is achieved through the
provision of a hidden, virtual directory - named .chkpnt - within each live directory.
Changing the current directory to the virtual .chkpnt directory enables users to
access checkpointed or prior versions of filesystem objects. Note the .chkpnt
directories are hidden to prevent problems with applications that search through
directory hierarchies, e.g., backup or virus scanning applications. Users can access
objects in the .chkpnt directories by explicitly navigating to them.
For example:
"cd /live_directory/.chkpnt"
Will navigate the user to the checkpointed version of the directory live_directory,
where they'll be able to view prior versions of objects from live_directory. Users can
also reference objects explicitly.
For example, the command:
cp /live_directory/.chkpnt/cp1/old_file1.txt /live_directory
Would copy the cp1 version of old_file1 back to live_directory.
Note: .chkpnt is the default name for the hidden directories containing the
checkpointed data and can be changed. See Compatibility Issues below.
If a directory is removed and a user wishes to access a checkpointed version of that
directory, they can do so by navigating first to the parent directory (of the removed
directory) and then traversing the directory hierarchy until they reach the desired
version of the rem oved directory. In Figure 6-8 , the directory d3 ha s been removed
but the user can access a checkpointed version of d3 through the .chkpnt directory in
its parent directory, d2.
In the example inFigure6-8, cp1 is the name of a checkpoint that contains the
desired version of the d2 directory.