hi:
i am using rdiff-backup to backup all our linux machines. i want to
try rsnapshot because it has better version
controls(daily,weekly,monthly). i found rsnapshot has some lvm support
but it seems limited to local host. when i use rdiff-backup, i can let
remote machines to flush mysql database and do a lvm snapshot, then
backup the snapshot. but i can not find a clear way to do this with
rsnapshot.
the tricks of rdiff-backup is like below:
in remote machine, edit "authorized_keys" like:
command="/share/bin/rdiff-init.sh",no-port-forwarding,no-X11-forwarding,no-pty
ssh-rsa AAAB3NzaC1yc2EAAA......
and create "rdiff-init.sh" like:
echo 'flush tables with read lock; system lvcreate -L5G -s -n backup
/dev/rootvg/root;' | mysql -urdiff-backup -prdiff-backup &>/dev/null
|| exit 1
mount -onouuid,ro /dev/rootvg/backup /mnt/backup &>/dev/null || exit 1
chroot /mnt/backup rdiff-backup --server --restrict-read-only /
umount /mnt/backup &>/dev/null
lvremove -f /dev/rootvg/backup &>/dev/null
i can not use the same trick with rsnapshot because rsnapshot will
pass parameters to remote rsync.
is there any better way i can do for remote lvm snapshot?
thank a lot for help!!
Regards,
tbskyd
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
