The dsnapshot script provides a high-level interface to the Linux Logical Volume Manager (LVM). It uses its block-level snapshot support to create directory-level snapshots.
Create a new snapshot (returns a path/handle to the snapshot):
$ dsnapshot --create /srv/mysql/test/
/var/lib/dsnapshot/srv-fdf2e6dc/mysql/test/
Remove this snapshot:
$ dsnapshot --remove /var/lib/dsnapshot/srv-fdf2e6dc/mysql/test/
- add support for other backends like btrfs, freebsd etc.