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/
.... 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 [ [url]http://benjamin-schweizer.de/files/dsnapshot/[/url] ]
and an introduction there [ [url]http://benjamin-schweizer.de/dsnapshot.html[/url] ].
If you like it and find it useful, I'd like to see it in the /contrib
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]