• Name

    svnadmin list-unused-dblogs – Ask Berkeley DB which log files can be safely deleted (applies only to repositories using the bdb backend).


    svnadmin list-unused-dblogs REPOS_PATH


    Berkeley DB creates logs of all changes to the repository, which allow it to recover in the face of catastrophe. Unless you enable DB_LOG_AUTOREMOVE, the log files accumulate, although most are no longer used and can be deleted to reclaim disk space. See the section called “Managing Disk Space” for more information.


    Remove all unused log files from a repository:

    $ svnadmin list-unused-dblogs /path/to/repos
    $ svnadmin list-unused-dblogs /path/to/repos | xargs rm

    The Version Control with Subversion book is licensed under the Creative Commons Attribution License v2.0.
    To submit comments, corrections, or other contributions to the text, please visit http://www.svnbook.com.