[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Preventing file:/// access

From: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: Wed, 24 Dec 2008 14:09:14 +0100

Hi,

2008/12/24 Michael <mchlwvr614_at_gmail.com>

> I am searching for a way other than not keeping them on a shared
> network location. Others wanted to keep them on a shared network
> location because it gets backed up etc.
>
>
If it is the backup you are concerned about, you should keep in mind that a
backup of a live repository is only correct if there are no live
transactions underway.

By writing a post-commit server hook, you can dump the just-committed
transaction to a file and place that on a share that is backed up. Benefits:
repository on local filesystem (== quick); completed transactions safely
stored on a managed file-area.

For example: my home linux box, running the repository has the following
line in the post-commit hook:

svnadmin dump $1 -r $2 --incremental --deltas >
/mnt/vault/repos/rivendell/revisions/$2

The /mnt/vault is my NAS.

-- 
Regards,
Jean-Marc
--
      ___
 @@  // \\      "De Chelonian Mobile"
(_,\/ \_/ \     TortoiseSVN
  \ \_/_\_/>    The coolest Interface to (Sub)Version Control
  /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=991553
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2008-12-24 14:10:13 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.