This text is a work in progress—highly subject to change—and may not accurately describe any released version of the ApacheTM Subversion® software. Bookmarking or otherwise referring others to this page is probably not such a smart idea. Please visit http://www.svnbook.com/ for stable versions of this book.

svnadmin recover
Prev svnadmin Reference—Subversion Repository Administration Next

Name

svnadmin recover — Bring a repository database back into a consistent state (applies only to repositories using the bdb backend). In addition, if repos/conf/passwd does not exist, it will create a default password file .

Synopsis

svnadmin recover REPOS_PATH

Description

Run this command if you get an error indicating that your repository needs to be recovered.

Options

--wait

Examples

Recover a hung repository:

$ svnadmin recover /var/svn/repos/ 
Repository lock acquired.
Please wait; recovering the repository may take some time...
Recovery completed.
The latest repos revision is 34.

Recovering the database requires an exclusive lock on the repository. (This is a "database lock"; see the sidebar The Many Meanings of "Lock".) If another process is accessing the repository, then svnadmin recover will error:

$ svnadmin recover /var/svn/repos
svn: E165000: Failed to get exclusive repository access; perhaps another proce
ss such as httpd, svnserve or svn has it open?
$

The --wait option, however, will cause svnadmin recover to wait indefinitely for other processes to disconnect:

$ svnadmin recover /var/svn/repos --wait
Waiting on repository lock; perhaps another process has it open?
### time goes by...
Repository lock acquired.
Please wait; recovering the repository may take some time...
Recovery completed.
The latest repos revision is 34.

Prev Up Next
svnadmin pack Home svnadmin rmlocks

AltStyle によって変換されたページ (->オリジナル) /