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

2004/12/24 snapshot


Some material is very old and may be incorrect today

© 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


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





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

Printer Friendly Version

->
-> snapshot


Inexpensive and informative Apple related e-books:

Are Your Bits Flipped?

Take Control of IOS 11

Take Control of Preview

iOS 8: A Take Control Crash Course

Take Control of Numbers





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





By understanding a machine-oriented language, the programmer will tend to use a much more efficient method; it is much closer to reality. (Donald Knuth)




Linux posts

Troubleshooting posts


This post tagged:

Misc.

UnixWords



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode