Snapshots Of Filesystems Under Linux

07 Mar 2008 21:47

Today I've learnt about making snapshots of regular filesystems in Linux.

First of all, this is a link to the article I've found and seems to be quite OK: http://howtoforge.com/linux_lvm_snapshots_p2

The idea is simple. We have to:

  1. Have LVM partition
  2. Set up some (I believe this is not limited to standard ext3) partitions on it
  3. Prepare some place for backups (over network or on a separate disk)
  4. Then at any time, we can just create a snapshot - this does not really consume MUCH resources — but consumes SOME.
  5. This takes not more than 1 second and creates a device/file/something that is an image of the filesystem in the exact moment of creating the snapshot.
  6. Having the image (snapshot) we can do anything with it (like with a block device) — mount (and backup the files), create a raw-copy, export to another machine, clone, whatever.

Notes

  • The author believes one can safely restore a backup without even restarting services.
    • Will we need to rely on this? 60 seconds of down-time is acceptable and guaranties that nothing bad happens.

Comments: 1

page 5 of 5« previous12345
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License