How can I determine the type of file system that is used by a given SVN repository? I want to create a new repository with svnadmin but want to make sure I am creating my new repository with consistent settings to other repositories already on the server.
I dont want to setup a berkley db repository if all the others are FSFS on the system.
Can I reliably just look in /repositoryname/db/fs-type ?
svn list is most useful if you want to see what files a repository has without downloading a working copy: $ svn list http://svn.red-bean.com/repos/test/support README. txt INSTALL examples/ … For further details, see the earlier section the section called “Listing versioned directories”.
A Subversion repository — abbreviated SVN repository — is a database filled with your code, files, and other project assets. A SVN repository maintains a complete history of every change ever made.
This database is referred to as the repository. The repository normally lives on a file server running the Subversion server program, which supplies content to Subversion clients (like TortoiseSVN) on request. If you only back up one thing, back up your repository as it is the definitive master copy of all your data.
If you're using a modern version of Subversion, the default is FSFS and has been for quite some time. Looking at db/fs-type
is a reliable method of determining what you have already set up.
svnadmin list-dblogs /path/to/repo
will list nothing if there are no db logs (ie. not berkely db). i dont know how failsafe that is though because if nothing has been done then there might not be any logs (? - not sure because i always use fsfs). PErhaps using this combined with look directly at the db dir on the filesystem would be accurat, though i can tthink of a case where the element on the fs wouldnt be accurate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With