You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by James Ralston <qr...@andrew.cmu.edu> on 2009/08/19 17:25:24 UTC

is "svnadmin dump" a safe/atomic backup mechanism?

Let's say that I want to make a backup of a repository by running
"svnadmin dump", and for whatever reason, I can't prevent client
access to the repository during the process.

What happens if a client commit is in progress when I run the "svadmin
dump" command?  Will the "svnadmin dump" command fail?  If it doesn't,
will the resulting dump file create a consistent repository if loaded
with "svnadmin load"?

What happens if a client attempts to start a commit while the "svadmin
dump" command is in progress?  Will the commit block until the
"svadmin dump" command completes, will the commit abort/fail, or will
the commit abort the "svnadmin dump" command?  If the former, will the
resulting dump file create a consistent repository if loaded with
"svnadmin load"?

Thanks,
James

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385317

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: is "svnadmin dump" a safe/atomic backup mechanism?

Posted by Ul...@elektrobit.com.
Jason Malinowski wrote:
>> On Wed, Aug 19, 2009 at 11:25 AM, James
>> Ralston<qr...@andrew.cmu.edu> wrote:
>>> Let's say that I want to make a backup of a repository by running
>>> "svnadmin dump", and for whatever reason, I can't prevent client
>>> access to the repository during the process.
>>> 
>>> What happens if a client commit is in progress when I run the
>>> "svadmin dump" command?  Will the "svnadmin dump" command fail? If
>>> it doesn't, will the resulting dump file create a consistent
>>> repository if loaded with "svnadmin load"? 
>>> 
>>> What happens if a client attempts to start a commit while the
>>> "svadmin dump" command is in progress?  Will the commit block until
>>> the "svadmin dump" command completes, will the commit abort/fail,
>>> or will the commit abort the "svnadmin dump" command?  If the
>>> former, will the resulting dump file create a consistent repository
>>> if loaded with "svnadmin load"? 
>> -----Original Message-----
>> From: larrys@gmail.com [mailto:larrys@gmail.com] On Behalf Of Larry
>> Shatzer Sent: Wednesday, August 19, 2009 10:33 AM
>> To: James Ralston
>> Cc: users@subversion.tigris.org
>> Subject: Re: is "svnadmin dump" a safe/atomic backup mechanism?
>> 
>> Please consult the book about backups:
>> http://svnbook.red-
>> 
> bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.backup
>> 
> It should work just fine. I don't know whether dump will
> include revisions committed or not, but you won't end up with corrupt
> dumps. 

Don't forget to back up your hook-scripts separately, since they aren't included in the dump.

Best regards

Ullrich Jans

-- 
Ullrich Jans, Application Support, IM
Phone: +49 9131 7701-6627, mailto:ullrich.jans@elektrobit.com 
Fax: +49 9131 7701-6333, www.elektrobit.com

Elektrobit Automotive GmbH, Am Wolfsmantel 46, 91058 Erlangen, Germany
Managing Directors: Otto Fößel, Jarkko Sairanen
Register Court Fürth HRB 4886 


----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.


RE: is "svnadmin dump" a safe/atomic backup mechanism?

Posted by Jason Malinowski <ja...@jason-m.com>.
It should work just fine. I don't know whether dump will include revisions committed or not, but you won't end up with corrupt dumps.

Jason Malinowski

> -----Original Message-----
> From: larrys@gmail.com [mailto:larrys@gmail.com] On Behalf Of Larry Shatzer
> Sent: Wednesday, August 19, 2009 10:33 AM
> To: James Ralston
> Cc: users@subversion.tigris.org
> Subject: Re: is "svnadmin dump" a safe/atomic backup mechanism?
> 
> Please consult the book about backups:
> http://svnbook.red-
> bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.backup
> 
> On Wed, Aug 19, 2009 at 11:25 AM, James
> Ralston<qr...@andrew.cmu.edu> wrote:
> > Let's say that I want to make a backup of a repository by running
> > "svnadmin dump", and for whatever reason, I can't prevent client
> > access to the repository during the process.
> >
> > What happens if a client commit is in progress when I run the "svadmin
> > dump" command?  Will the "svnadmin dump" command fail?  If it doesn't,
> > will the resulting dump file create a consistent repository if loaded
> > with "svnadmin load"?
> >
> > What happens if a client attempts to start a commit while the "svadmin
> > dump" command is in progress?  Will the commit block until the
> > "svadmin dump" command completes, will the commit abort/fail, or will
> > the commit abort the "svnadmin dump" command?  If the former, will the
> > resulting dump file create a consistent repository if loaded with
> > "svnadmin load"?
> >
> > Thanks,
> > James
> >
> 
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=238
> 5319
> 
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe@subversion.tigris.org].

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385470

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: is "svnadmin dump" a safe/atomic backup mechanism?

Posted by Larry Shatzer <fu...@zyx.net>.
Please consult the book about backups:
http://svnbook.red-bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.backup

On Wed, Aug 19, 2009 at 11:25 AM, James
Ralston<qr...@andrew.cmu.edu> wrote:
> Let's say that I want to make a backup of a repository by running
> "svnadmin dump", and for whatever reason, I can't prevent client
> access to the repository during the process.
>
> What happens if a client commit is in progress when I run the "svadmin
> dump" command?  Will the "svnadmin dump" command fail?  If it doesn't,
> will the resulting dump file create a consistent repository if loaded
> with "svnadmin load"?
>
> What happens if a client attempts to start a commit while the "svadmin
> dump" command is in progress?  Will the commit block until the
> "svadmin dump" command completes, will the commit abort/fail, or will
> the commit abort the "svnadmin dump" command?  If the former, will the
> resulting dump file create a consistent repository if loaded with
> "svnadmin load"?
>
> Thanks,
> James
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385319

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].