Re: svn backup

2013-10-08 Thread rvaede
Thanks for the info. I have used hotcopy command and that worked fine for a backup. On Monday, October 7, 2013 3:37:07 PM UTC-4, rvaede wrote: > > > >I am confused on how to backup my repositary. >There is an /export/svn directory that holds all the projects > directories, hook, format l

Re: svn backup

2013-10-07 Thread Thomas Harold
On 10/7/2013 3:37 PM, rvaede wrote: > > > I am confused on how to backup my repositary. Note: Making a raw file-level backup of a SVN repository is not advisable. There may be open files, files that changed while the backup is running, etc. So you will need to use one of the hotcopy / du

Re: svn backup

2013-10-07 Thread Thorsten Schöning
Guten Tag rvaede, am Montag, 7. Oktober 2013 um 21:37 schrieben Sie: >I did do a svnadmin dump /export/svn > /test/file.dump >and I get a very small file, I restored it and it consists of > hook, format, lock, db, conf and its about 304 KB A dump shouldn't ever contain the hooks-director

svn backup

2013-10-07 Thread rvaede
I am confused on how to backup my repositary. There is an /export/svn directory that holds all the projects directories, hook, format lock, db etc... its about 14 GB I did do a svnadmin dump /export/svn > /test/file.dump and I get a very small file, I restored it and it consists

Re: SVN backup with lvm snapshots and rsync

2012-02-19 Thread Blair Zajac
On 02/15/2012 11:05 AM, Philip Martin wrote: Stefan Sperling writes: But rather than going through that effort, I would recommend using svnadmin dump/load, or svnsync with file:// URLs, until Subversion 1.8 is released. At which point you can switch over to using "svnadmin hotcopy --incrementa

Re: SVN backup with lvm snapshots and rsync

2012-02-16 Thread Daniel Shahaf
Stefan Sperling wrote on Thu, Feb 16, 2012 at 13:53:04 +0100: > On Thu, Feb 16, 2012 at 03:56:29AM +0200, Daniel Shahaf wrote: > > Nico Kadel-Garcia wrote on Wed, Feb 15, 2012 at 19:41:57 -0500: > > > On Wed, Feb 15, 2012 at 6:19 PM, Philip Martin > > > wrote: > > > > Nico Kadel-Garcia writes: >

Re: SVN backup with lvm snapshots and rsync

2012-02-16 Thread Les Mikesell
On Thu, Feb 16, 2012 at 6:53 AM, Stefan Sperling wrote: > > > > There is no "window of vulnerability". > > > What if the disk controller lies and sends the acknowledgement before > the actual work has completed (e.g. it cached the write request and is > going to get to it soon)? How can the OS kn

Re: SVN backup with lvm snapshots and rsync

2012-02-16 Thread Stefan Sperling
On Thu, Feb 16, 2012 at 03:56:29AM +0200, Daniel Shahaf wrote: > Nico Kadel-Garcia wrote on Wed, Feb 15, 2012 at 19:41:57 -0500: > > On Wed, Feb 15, 2012 at 6:19 PM, Philip Martin > > wrote: > > > Nico Kadel-Garcia writes: > > > > > >> Unless you do a "sync" > > >> command, or various low level f

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Daniel Shahaf
Nico Kadel-Garcia wrote on Wed, Feb 15, 2012 at 19:41:57 -0500: > On Wed, Feb 15, 2012 at 6:19 PM, Philip Martin > wrote: > > Nico Kadel-Garcia writes: > > > >> Unless you do a "sync" > >> command, or various low level flush commands, you don't know that you > >> write to disk has actually made i

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Nico Kadel-Garcia
On Wed, Feb 15, 2012 at 6:19 PM, Philip Martin wrote: > Nico Kadel-Garcia writes: > >> Unless you do a "sync" >> command, or various low level flush commands, you don't know that you >> write to disk has actually made it to the platter. > > Subversion does that.  It uses fsync (plus fsync on dire

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Philip Martin
Nico Kadel-Garcia writes: > Unless you do a "sync" > command, or various low level flush commands, you don't know that you > write to disk has actually made it to the platter. Subversion does that. It uses fsync (plus fsync on directories on Linux) before assuming data is on disk. -- Philip

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Les Mikesell
On Wed, Feb 15, 2012 at 3:37 PM, Nico Kadel-Garcia wrote: > If the repository is busy in a commit or partial commit at the moment > of the snapshot, you're in potentially very deep trouble. You've > entered not only "split-brain" territory, where the repositories are > out of sync, but partial c

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Nico Kadel-Garcia
On Wed, Feb 15, 2012 at 2:05 PM, Philip Martin wrote: > Stefan Sperling writes: > >> But rather than going through that effort, I would recommend using >> svnadmin dump/load, or svnsync with file:// URLs, until Subversion 1.8 >> is released. At which point you can switch over to using >> "svnadmi

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Andreas Krey
On Wed, 15 Feb 2012 20:41:48 +, Stefan Sperling wrote: > I don't know enough about SQlite to judge whether the DB will > keep working at any frozen state a snapshot might create. If it doesn't then it wouldn't be resilient to system crashes either, and *that* wouldn't exactly be a recomme

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Stefan Sperling
On Wed, Feb 15, 2012 at 07:05:08PM +, Philip Martin wrote: > Stefan Sperling writes: > > > But rather than going through that effort, I would recommend using > > svnadmin dump/load, or svnsync with file:// URLs, until Subversion 1.8 > > is released. At which point you can switch over to using

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Philip Martin
Stefan Sperling writes: > But rather than going through that effort, I would recommend using > svnadmin dump/load, or svnsync with file:// URLs, until Subversion 1.8 > is released. At which point you can switch over to using > "svnadmin hotcopy --incremental", which will copy rep-cache.db via > t

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Stefan Sperling
On Wed, Feb 15, 2012 at 12:03:15PM -0500, Harry Bullen wrote: > From what I gather rep-cache.db, can be > regenerated by svn. If I used rsync and excluded the rep-cache.db > would I then want to run 'svnadmin recover' on these backup or is > rep-cache.db regenerated automatically when the reposit

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Daniel Shahaf
Harry Bullen wrote on Wed, Feb 15, 2012 at 12:03:15 -0500: > On Wed, Feb 15, 2012 at 6:24 AM, Stefan Sperling wrote: > > On Wed, Feb 15, 2012 at 03:02:04AM +0200, Daniel Shahaf wrote: > >> Stefan Sperling wrote on Tue, Feb 14, 2012 at 23:19:58 +0100: > >> > Until then, svnsync or svnadmin dump/loa

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Harry Bullen
On Wed, Feb 15, 2012 at 6:24 AM, Stefan Sperling wrote: > On Wed, Feb 15, 2012 at 03:02:04AM +0200, Daniel Shahaf wrote: >> Stefan Sperling wrote on Tue, Feb 14, 2012 at 23:19:58 +0100: >> > Until then, svnsync or svnadmin dump/load are the only officially >> > supported incremental backup solutio

Re: SVN backup with lvm snapshots and rsync

2012-02-15 Thread Stefan Sperling
On Wed, Feb 15, 2012 at 03:02:04AM +0200, Daniel Shahaf wrote: > Stefan Sperling wrote on Tue, Feb 14, 2012 at 23:19:58 +0100: > > Until then, svnsync or svnadmin dump/load are the only officially > > supported incremental backup solutions. But, as Daniel explained, > > 'rsync' followed by 'svnadmi

Re: SVN backup with lvm snapshots and rsync

2012-02-14 Thread Daniel Shahaf
Les Mikesell wrote on Tue, Feb 14, 2012 at 19:34:10 -0600: > On Tue, Feb 14, 2012 at 7:02 PM, Daniel Shahaf > wrote: > > Stefan Sperling wrote on Tue, Feb 14, 2012 at 23:19:58 +0100: > >> Until then, svnsync or svnadmin dump/load are the only officially > >> supported incremental backup solutions

Re: SVN backup with lvm snapshots and rsync

2012-02-14 Thread Les Mikesell
On Tue, Feb 14, 2012 at 7:02 PM, Daniel Shahaf wrote: > Stefan Sperling wrote on Tue, Feb 14, 2012 at 23:19:58 +0100: >> Until then, svnsync or svnadmin dump/load are the only officially >> supported incremental backup solutions. But, as Daniel explained, >> 'rsync' followed by 'svnadmin recover'

Re: SVN backup with lvm snapshots and rsync

2012-02-14 Thread Daniel Shahaf
Stefan Sperling wrote on Tue, Feb 14, 2012 at 23:19:58 +0100: > Until then, svnsync or svnadmin dump/load are the only officially > supported incremental backup solutions. But, as Daniel explained, > 'rsync' followed by 'svnadmin recover' produces valid copies of > FSFS repositories, too. I didn't

Re: SVN backup with lvm snapshots and rsync

2012-02-14 Thread Stefan Sperling
On Tue, Feb 14, 2012 at 02:11:29PM -0500, Harry Bullen wrote: > The repositories total about 200GB (some > people might have committed movies to svn but I may not fix this) > which is why I want to do this instead of svn hotcopy, which will have > to copy all 200GB every day. Subversion 1.8 will s

Re: SVN backup with lvm snapshots and rsync

2012-02-14 Thread Les Mikesell
On Tue, Feb 14, 2012 at 1:11 PM, Harry Bullen wrote: > I'm looking at using lvm snapshots and rsync to back up a bunch of svn > repositories every night. The repositories total about 200GB (some > people might have committed movies to svn but I may not fix this) > which is why I want to do this

Re: SVN backup with lvm snapshots and rsync

2012-02-14 Thread Daniel Shahaf
If the snapshots are atomic that's fine, though you'll potentially need to run 'svnadmin recover' before they're usable. Running dump / verify or otherwise verifying your snapshots remains a good idea. Harry Bullen wrote on Tue, Feb 14, 2012 at 14:11:29 -0500: > I'm looking at using lvm snapshots

Re: SVN backup with lvm snapshots and rsync

2012-02-14 Thread Nico Kadel-Garcia
On Tue, Feb 14, 2012 at 2:11 PM, Harry Bullen wrote: > I'm looking at using lvm snapshots and rsync to back up a bunch of svn > repositories every night.  The repositories total about 200GB (some > people might have committed movies to svn but I may not fix this) > which is why I want to do this i

SVN backup with lvm snapshots and rsync

2012-02-14 Thread Harry Bullen
I'm looking at using lvm snapshots and rsync to back up a bunch of svn repositories every night. The repositories total about 200GB (some people might have committed movies to svn but I may not fix this) which is why I want to do this instead of svn hotcopy, which will have to copy all 200GB every

Re: svn backup strategy

2010-05-04 Thread Ryan Schmidt
Please keep this discussion on the mailing list by using the Reply All function. On May 4, 2010, at 02:40, Vikrama Sanjeeva wrote: > On Tue, May 4, 2010 at 1:05 AM, Ryan Schmidt wrote: > >> Please consider backing up each revision as it is committed, in a >> post-commit hook. That way you won't

Re: svn backup strategy

2010-05-03 Thread Ryan Schmidt
On May 3, 2010, at 11:09, Vikrama Sanjeeva wrote: > We've recently shifted to SVN. Suppose there are three repositories R1, R2 > and R3. And each repostory has three projects in it. > > So we have: > R1: P1, P2, P3 > R2: P1, P2, P3 > R3: P1, P2, P3 > > R1-P1 and R1-P2 are changed almost daily,

svn backup strategy

2010-05-03 Thread Vikrama Sanjeeva
Hello, We've recently shifted to SVN. Suppose there are three repositories R1, R2 and R3. And each repostory has three projects in it. So we have: R1: P1, P2, P3 R2: P1, P2, P3 R3: P1, P2, P3 R1-P1 and R1-P2 are changed almost daily, whereas, R1-P3 is changed very rare (once a month) Change of