Recovering Deleted or Corrupted Files Using Snapshots
For the following procedures, make sure you have logged in to an SSH Client and are at the Unix terminal. Instructions on how to log in to an SSH Client can be found at the Help page.
To submit a command line in Unix, press Enter.
UTS and Web Central files are stored on NetApp filers, which create and store snapshots of directories at hourly, daily, and weekly intervals. With these snapshots, recently deleted or corrupted files can be restored to a previous state.
To view available snapshots, navigate to the folder containing the file that needs to be restored, and enter the command:
ls -lt .snapshot/*/
This will return a list of available snapshots for files in the current directory. A typical snapshot will resemble something like this:
-rw-r--r-- 1 username users 200 Oct 23 2004 filename1.txt
-rw-r--r-- 1 username users 387 Oct 29 2004 filename2.txt
-rw-r--r-- 1 username users 694 Oct 29 2004 filename3.txt`
Note: The most recent snapshots are suffixed with .0, so
sv_hourly.0 will provide a more recent snapshot than
Restoring Files from a Snapshot
To restore a file from a snapshot, use the copy command
cp .snapshot/snapshotname/filename newfilename
From the above example, to copy
filename1.txt from the
sv_hourly.1 snapshot to the current directory, enter
cp .snapshot/sv_hourly.1/filename1.txt newfilename
Note: Data stored inside a snapshot directory can only be copied; contents cannot be added, moved, or modified.
Last updated July 10, 2014 @ 2:31 pm