[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] dsnapshot, a high-level interface to the snapshot facility

Hello there,

recently, I've written a helper script that I use with my rsync-based
backups. Here's the abstract:

| The dsnapshot script provides a high-level interface to the Linux
| Logical Volume Manager. It uses its block-level snapshot support to
| create directory snapshots. In contrast to block-level snapshots,
| directory snapshots resemble the file system layer. Thus, you can
| snapshot any directory that is on a logical volume and you don’t have to
| worry about the actual logical volumes, mount points and paths.

And this is the actual syntax for creating...

| $ dsnapshot --create /srv/mysql/test/
| /var/lib/dsnapshot/srv-fdf2e6dc/mysql/test/

... and removing a directory snapshot

| $ dsnapshot --remove /var/lib/dsnapshot/srv-fdf2e6dc/mysql/test/

I've found it very handy when you need to backup partial directories and
not the whole volume. Some people use it to backup the disk images of
running virtual machines, I use it with mailstores and small databases.

The script can be found here [ http://benjamin-schweizer.de/files/dsnapshot/ ]
and an introduction there [ http://benjamin-schweizer.de/dsnapshot.html ].
If you like it and find it useful, I'd like to see it in the /contrib directory.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]