Cover by Ron Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

CHAPTER 39System Snapshots

Disk snapshots are a way of taking backups of files and directories at given time intervals. By accessing the specific snapshot interval, you can go back in time and find the version of a file from its snapshot backup. The script in this chapter backs up a list of directories that is configurable within the script; the backup is either at another location on the same disk, or on a separate disk altogether.

This script takes a copy of the original source directories and backs them up as the first snapshot. Any subsequent snapshot backups use hard links for any files that have not changed, and any changed files are copied. Like a soft link, a hard link allows multiple points of access to a single file, but a soft link ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required