Using Snapshots from Windows
Locating Files in the Snapshots
Each directory in the NetApp filesystem contains an invisible directory called .snapshot, which usually does not appear in directory listings. (The .snapshot directory is only visible at the mount point of the NetApp filesystem.) You must explicitly refer to .snapshot in order to use it. Beneath the .snapshot directory are some more directories, each of which corresponds to a snapshot. The hourly snapshots are named hourly.N where N is a number. Nightly snapshots are named nightly.N. Each of these .snapshot/* directories is a complete copy of the live directory, frozen at the moment the snapshot was created. Suppose you inadvertently delete a file called foo in your home directory. You might find snapshotted versions of it named .snapshot/hourly.0/foo or .snapshot/nightly.1/foo, etc. Note that snapshots are not taken continuously. They are discrete events that happen on a regular schedule. If you create a new file and delete it before any snapshot is taken, it is irretrievably lost.Since every directory in the live filesystem has an invisible .snapshot directory, you can access a file in a snapshot with different paths. Suppose you lost the file foo/bar and that the backup copy that you want is in snapshot hourly.1. You can retrieve the file a couple of different ways. You can get it from .snapshot/hourly.1/foo/bar or you can get it from foo/.snapshot/hourly.1/bar. This is a very handy feature. Suppose you delete the entire foo directory and later discover that you need foo/bar back. You would be unable to use foo/.snapshot because foo no longer exists in the live filesystem. Fortunately, foo still exists in the snapshot as .snapshot/hourly.1/foo so you can retrieve file bar from there.
Each .snapshot directory and everything beneath it is strictly read-only. You cannot create, remove, or modify anything.
Cookbook Example
If you can "drag and drop" you can restore your own files from snapshots. First you have to mount the snapshots directory by doing the following: Right click on "My Computer" and choose the "Map Network Drive" option. A dialogue box will appear. On the "Folder" line type \\windfs\dfs\home\youruserid\.snapshot" and click "finish". A folder will appear showing icons of what is in your .snapshot directory. At the top, choose "View" and then "Details" to see the list of snapshots, their dates, and sizes. The output will look something like this:hourly.0 File Folder 1/24/2002 1:49pm hourly.1 File Folder 1/24/2002 12:49pm hourly.2 File Folder 1/24/2002 11:49am nightly.1 File Folder 1/24/2002 1:30am nightly.0 File Folder 1/23/2002 1:30am weekly.0 File Folder 1/16/2002 1:30am
Double click on the snapshot folder you want to enter and continue to do so until you reach the folder that contained the file you want to restore. Open a window of the folder you want to restore the file to by double clicking on "My Computer" and choosing the icon of your home directory ("username on '\\windfs\dfs\home'"). Continue to double click the appropriate folders until you reach the folder you want to restore the file to. Now, just drag/drop the file from the window listing the snapshots to the window listing your home directory. Note that if file foo exists and you are copying over it, the drag/drop will ask if you want to overwrite the file. If you are sure you want to do that, click ok. If not, rename the old file by right clicking on it, choose "Rename", and add .bad, or something like that, to its name. Then you can drag/drop the file and still keep the old one.
| Page Owner: Dorinda Moulton | Last Modified: Mon May 8 14:14:10 2006 |