Skip to contentSkip to conversation

Integrating LVM sna[pshots with rsnapshot (rsync based backup tool)

linux-lvm Tanstaafl 1 participant 1 message Jan 17, 2014

lore
Share & tools
lore

Tanstaafl

author
#0 lore raw

Hi all,

Just wanted to ask here for confirmation of something.

Rsnapshot is a perl utility, and can be configured to create LVM snapshots for performing backups (ie, for backing up email stores, etc).

man rsnapshot contains the following:

linux_lvm_vgpath /dev
Path to the LVM Volume Groups.

Considering that my LVM volumes specified in fstab are:

# LVM command paths
#

linux_lvm_cmd_lvcreate  /sbin/lvcreate
linux_lvm_cmd_lvremove  /sbin/lvremove
linux_lvm_snapshotsize  3G
linux_lvm_snapshotname  lvm-snap-host1
linux_lvm_vgpath        /dev/vg
linux_lvm_mountpath     /mnt/lvm-rsnap-host1
linux_lvm_cmd_mount     /bin/mount
linux_lvm_cmd_umount    /bin/umount

So, my question is, what should I use in my rsnapshot config?

/dev

or

/dev/vg

There is obviously a ton of stuff in /dev that has nothing to do with LVM, so it seems more logical to me that I would use /dev/vg, but maybe LVM is smarter than I give it credit for?