[mylvmbackup] mylvmbackup & rsnap + also 1 tiny suggested change
- From: "Matt Lohier" <mlohier@xxxxxxxxx>
- To: mylvmbackup@xxxxxxxxxxxxx
- Date: Fri, 18 Jul 2008 14:10:58 +1000
Hello,
Thank you Lenz for your work on mylvmbackup v0.9. It's very good!
I use it to backup 100GB of mysql database.
I tried the tar option: fine. I'd like to use that for a weekly backup.
And at the same time i wanted to create daily snapshots using hard-links
(but not full backup like a tar.gz) and keep a few of those - a week worth.
rsync helps here but it would not provide the history that i would like to
have (nor the hard links).
rsnap (courtesy of Daniel Lorch [http://daniel.lorch.cc/projects/rsnap/]) is
based on rsync and can provide multiple snapshot using hard links. It's
similar to rsnapshot (which you want to add support for I read - and i look
forward to that) but simpler because you can configure only one set/type of
snapshots (not like rsnapshot with daily/weekly/monthly snapshots and the
necessity to run it at various schedules/cron). So it's very easy to add
support for it.
I modified your script to add support by copying the rsync system call and
now calling rsnap instead. With rsnap though you cannot take a backup of pos
files or config file because rsnap only expect a single source for the
backup (your mnt point). Also the temp destination cannot be used, it gets
backup straight to the destination - cannot rename temp dest because of the
sub-directories for the snapshots.
I added support/configuration for rsnap similarly in config file. And that
was all that was require to keep multiple rsynced snapshots (using hard
links).
Do you think it's a good thing to add to your already brilliant script?
On a separate note (with Centos) when run from cron the lvs system call
could not be resolved - so i added a config option in config file also for
lvs (like lvcreate...) that was missing and the LV stat display was failing
for me.
Anyway maybe that can help someone.
Cheers / Matt
- Follow-Ups:
- [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- From: Lenz Grimmer
Other related posts:
- » [mylvmbackup] mylvmbackup & rsnap + also 1 tiny suggested change
- » [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- » [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- » [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- » [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- » [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- » [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- [mylvmbackup] Re: mylvmbackup & rsnap + also 1 tiny suggested change
- From: Lenz Grimmer