APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2004/12/24 snapshot

© December 2004 Tony Lawrence

A filesystem technique that allows leisurely backups while continuing to use the system. This magic is accomplished by making a special copy of a directory or filesystem (the exact mechanics will vary with the product you are using) that doesn't really copy anything unless and until data changes at the source. Here's how it works: Let's say that you have created a snapshot of some directory in /snap. If you read files in /snap, they look just like the files they were created from. Actually, you are still reading from the original data blocks at this point.

However, if something is changed in your original source, the filesystem copies data to the /snap are before overwriting the new data. This keeps the things in /snap frozen in time at the moment you created them. Another advantage is that if there haven't been a lot of changes, /snap doesn't have to use much disk space: it is reading from the original data blocks until they change.

Some people have misunderstood this and have used mutliple snapshots as backups. You CAN do that, of course, but the general reason for snapshots is so that you can back up the snap to tape and then remove it.

Not all filesystems support snapshots. That's unfortunate, as it really is a powerful and very useful tool. Some that do include LVM, Unionfs and Veritas

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> snapshot

Inexpensive and informative Apple related e-books:

Take Control of Apple Mail, Third Edition

iOS 8: A Take Control Crash Course

Take Control of Automating Your Mac

Take Control of IOS 11

Take control of Apple TV, Second Edition

More Articles by © Tony Lawrence

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

Any problem in computer science can be solved with another level of indirection. (David Wheeler)

Linux posts

Troubleshooting posts

This post tagged:



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode