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

Re: HOWTO: Screw up a repository (svnadmin load repo > svn_dump)

From: Scott Lamb <slamb_at_slamb.org>
Date: 2002-11-14 19:35:31 CET

Jostein Christoffer Andersen wrote:

> Hi,
>
> I did somethithing bad today: -I destroyed a repository (but was saved by
> a backup) and it was easy as:
>
> svnadmin load repo > svn_dump
> ^^^

As Karl said, this is a shell thing. Most shells have a "noclobber"
option that will check if the file already exists and require you to do
">|" explicitly to destroy its contents. So if you want to be safe, a
"set noclobber" in your .bashrc (not .bash_profile, that wouldn't affect
subshells) and you should be good.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 14 19:36:16 2002

This is an archived mail posted to the Subversion Dev mailing list.

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