UNIX Machine Backups

Backups Using Windows

Media at the AOC

Backups to DVD/CDRs

Snapshots

 

Snapshots

 


Snapshots - what are these and where?

The Network Appliance "filehost" file server on which most of our Unix home directories live, has a very useful feature, one that is built in to its fundamental native file system (WAFL). This feature, known as "snapshots", is available from both Unix/Linux and Windows systems. The effect of the feature is to provide you, the user, with a read-only snapshot of how your files looked at a particular moment in time.

In your Unix home directory on the filer, there is a directory called .snapshot. If you browse it (either from the command line with cd and ls, or using a graphical explorer-like interface such as with Gnome, KDE, or Windows), you'll see several sub-directories therein, perhaps something like this:

paso krowe > cd .snapshot/
paso krowe > pwd
/users/krowe/.snapshot
paso krowe > ls -l
total 2560
drwxr-xr-x   79 krowe    nmstaff      323584 Oct 23 16:40 hourly.0/
drwxr-xr-x   79 krowe    nmstaff      323584 Oct 23 16:40 hourly.1/
drwxr-xr-x   79 krowe    nmstaff      323584 Oct 23 16:00 hourly.2/
drwxr-xr-x   78 krowe    nmstaff      323584 Oct 23 10:00 hourly.3/
drwxr-xr-x   78 krowe    nmstaff      323584 Oct 22 16:34 hourly.4/
drwxr-xr-x   78 krowe    nmstaff      323584 Oct 22 16:34 hourly.5/
drwxr-xr-x   79 krowe    nmstaff      323584 Oct 23 16:40 nightly.0/
drwxr-xr-x   78 krowe    nmstaff      323584 Oct 22 16:34 nightly.1/
paso krowe >

Within each of these hourly or nightly snapshots is a complete copy of how your files appeared at that time. This is a read-only copy, meaning you can browse the files, and/or copy them to "normal" (non-snapshot) locations such as your real home directory, but you cannot write to them, nor can you manually place files in the snapshot directories.

Windows users cannot easily browse these directories from an explorer window by clicking, but the files and subdirectories are there; you may have to enter the directory explicitly (by typing it in, e.g. via the RUN command from the START menu).

While it may appear that we're wasting huge amounts of space with these snapshots, we're not, really. The "WAFL" file system on the NetApp is constructed in such a way that the snapshots are like incremental backups; they really only contain the changes and differences -- at the disk block level -- between your current files and how they appeared at the time of the snapshot. If the file hasn't changed, they'll be identical and take up no extra space.

Content reviewed on: 5-May-2011
Reviewed by: krowe