rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Restoring files while rdiff-backup is running


From: Dominic
Subject: Re: [rdiff-backup-users] Restoring files while rdiff-backup is running
Date: Tue, 25 Nov 2008 17:26:49 +0000
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

Simon Hobson wrote:
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.
Neat! A further complication is that this would have to be initiated from the client computers as it is a push backup situation, and most of these run Windows, but I guess it can be done with plink. And there might be some permissions issues since client computers connect as restricted users. But thanks for the suggestion.

Dominic




reply via email to

[Prev in Thread] Current Thread [Next in Thread]