Reputation: 14565
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 ?
Upvotes: 8
Views: 5222
Reputation: 565
just navigate to path/to/repo/db/fs-type You will get to know the db type subversion using.
Upvotes: 1
Reputation: 993243
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.
Upvotes: 9
Reputation: 60413
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.
Upvotes: 2