|
From: | Simon Hobson |
Subject: | Re: [rdiff-backup-users] Restoring files while rdiff-backup is running |
Date: | Tue, 25 Nov 2008 16:26:06 +0000 |
Dominic wrote:
Without fully understanding this, would it be possible, if the repository is inside an LVM logical volume (mine will be, as it so happens :-) ), to create a snapshot and then restore from that, while the original backup proceeds on the original volume? Or would the snapshot also be locked/unusable, whether for an rdiff-backup restore or for other processes? (I want to replicate my rdiff-backup server repositories to an offsite machine, and my plan is to have a cron job which creates an LVM snapshot and then uses rsync to synchronise the remote data, but again this activity might overlap with ongoing backups.)
The repository would still be locked, as the snapshot would simply show your the state of the disk at a set point in time. What you could do is to create a snapshot before starting the backup, and then destroy it later. I'd guess the timing you'd need would be :
Create snapshot (if not already in existance) before starting backup Do backup Kill snapshot IF there is no copy in progress. Create snapshot (if not already in existance) before starting copy Do copy from snapshot Kill snapshot IF there is no backup in progress. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books.
[Prev in Thread] | Current Thread | [Next in Thread] |