You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr> on 2005/09/26 13:52:17 UTC
back up / two separate disks
Hi,
I intend to run Subversion on a server with two separate disks. Both
disk are backed up on a distant server. One of the disks has plenty of
room and is planned to contain the repository, the other disk is smaller
and contains the /var directory in which I can write logs or smaller
files such as incremental dumps.
I need to be able to recover from the crash of one of the two disks -
*including* the latest commits.
I've read paragraph "Repository Backup" from chapter 5 of "Version
Control with Subversion" and paragraph "Backups" from chapter 3 of
"Practical Subversion". It's still not clear how to best handle this.
My intention is to perform a "hot copy" every evening from and to the
repository disk. The "hot copy" will be backed up when the back up
process runs later in the evening.
If the repository disk crashes, I'll lose the commits since the last
back up. The idea is to write incremental backups to the second disk
that contains /var. Using the last backed up "hot copy" and the
incremental backups, I should be able to recover the repository.
What's the best strategy? An incremental backup since the latest hot
backup of the repository with every commit? Are there any scripts that
do that ? I can use the hot-backup.py script for backing up the
repository, but I would still need a set of scripts to create the
incremental backup from the post-commit hook and maybe to delete old
incremental backups when a new hot backup is performed.
I guess this is similar to this thread:
http://svn.haxx.se/users/archive-2005-05/1147.shtml
Unfortunately the scripts do not seem to be available on line.
Dimitri Papadopoulos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: back up / two separate disks
Posted by Gary Thomas <ga...@mlbassoc.com>.
On Wed, 2005-09-28 at 10:38 +0200, Dimitri Papadopoulos-Orfanos wrote:
> > You can use software RAID if you wish...
>
> It means configuring things. Unfortunately the sysadmins here don't have
> time for that, they only purchase ready-to-use solutions.
>
> Besides I had once seen a raid crashing, but I haven't yet seen two
> disks crashing at the same time.
>
> Is there any solution involving two disks?
What I do is keep a directory with running copies of every commit,
updated during the post-commit hook. This can be anywhere of course,
not related at all to where the actual repository is kept. Just add
a line like:
svnadmin dump "$REPOS" --revision "$REV" --incremental --deltas >/var/svn/dumps/change.$REV 2>/dev/null
where '/var/svn/dumps' is the name of the backup directory. You could start out
by writing a little script to generate all of the changes to date, or just
with a full dump. Then to restore your repository is as simple as creating
a new one, loading in the "full" dump and all of the changes in order.
n.b. svnadmin dump does not dump the support files like the hooks directory,
so you may also want to keep a copy of those for easy restoration.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: back up / two separate disks
Posted by Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr>.
> You can use software RAID if you wish...
It means configuring things. Unfortunately the sysadmins here don't have
time for that, they only purchase ready-to-use solutions.
Besides I had once seen a raid crashing, but I haven't yet seen two
disks crashing at the same time.
Is there any solution involving two disks?
Dimitri Papadopoulos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: back up / two separate disks
Posted by Paul Koning <pk...@equallogic.com>.
>>>>> "Dimitri" == Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr> writes:
>> What? no raid?
Dimitri> No, unfortunately not. This is a desktop PC being used as a
Dimitri> server...
You can use software RAID if you wish...
paul
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: back up / two separate disks
Posted by Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr>.
>> What? no raid?
>
>
> No, unfortunately not. This is a desktop PC being used as a server...
Not to mention I have already seen a raid crash, but I have yet to see
two disks crashing at the same time.
Dimitri Papadopoulos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: back up / two separate disks
Posted by Dimitri Papadopoulos-Orfanos <pa...@shfj.cea.fr>.
Hi,
>> I intend to run Subversion on a server with two separate disks. Both
>> disk are backed up on a distant server. One of the disks has plenty
>> of room and is planned to contain the repository, the other disk is
>> smaller and contains the /var directory in which I can write logs or
>> smaller files such as incremental dumps.
>
>
> What? no raid?
No, unfortunately not. This is a desktop PC being used as a server...
Dimitri Papadopoulos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: back up / two separate disks
Posted by Jon Bendtsen <jo...@laerdal.dk>.
Den 26. sep 2005 kl. 15:52 skrev Dimitri Papadopoulos-Orfanos:
> Hi,
>
> I intend to run Subversion on a server with two separate disks.
> Both disk are backed up on a distant server. One of the disks has
> plenty of room and is planned to contain the repository, the other
> disk is smaller and contains the /var directory in which I can
> write logs or smaller files such as incremental dumps.
What? no raid?
JonB
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org