On Sun, 04 Apr 2010 17:43:30 +0200
Guillaume Delacour <[email protected]> wrote:

> Hello,
> 
> Can you attach your /etc/rsnapshot.conf file ?

Done.

> I don't really understand your problem, all details needed to understand
> bit more your usecase (lvm usage, commands used, etc...) appreciated.

The main (internal) drive on the system uses LVM
(/, /home, /usr, /swap, /var).  I back up parts of /var, /usr, /home
and /boot.  To ensure that the backups are consistent, I use the LVM
snapshot feature, so that instead of backing up, for example, /home,
directly, I create a home_backup lv, which remains static, and then
back that up.  I'm following the basic procedure given in the LVM howto:

http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html

My backup rsnapshot wrapper is this (invoked with one argument, which
is passed to rsnapshot):

#! /bin/sh

/sbin/lvcreate -L 2G -s -n home_backup /dev/lizzie/home 
/sbin/lvcreate -L 100M -s -n root_backup /dev/lizzie/root 
/sbin/lvcreate -L 1G -s -n var_backup /dev/lizzie/var 

/bin/mount /dev/lizzie/home_backup /mnt/home_backup/
/bin/mount /dev/lizzie/root_backup /mnt/root_backup/
/bin/mount /dev/lizzie/var_backup /mnt/var_backup/

nice -n 19 /usr/bin/rsnapshot $1

/bin/umount /mnt/home_backup/
/bin/umount /mnt/root_backup/
/bin/umount /mnt/var_backup/

/sbin/lvremove -f lizzie/home_backup
/sbin/lvremove -f lizzie/root_backup
/sbin/lvremove -f lizzie/var_backup 

I'll be glad to provide any other information that you need.

Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

Attachment: rsnapshot.conf
Description: Binary data

Reply via email to