Alexus
Alexus

Reputation: 436

Limit SVN repository size or files size

How to limit SVN repository size without using pre-commit hooks? pre-commit hook raised when all files that needs to be commited are already on server.

My repository is public and I dont want to get over 500 Gb files to be commited.

I want to limit repository to 5 Mb size including all commits. May be I can use some 3rd party software to do this? For example software to limit folders size?

Upvotes: 3

Views: 8144

Answers (2)

Alexus
Alexus

Reputation: 436

So, the answer:

  1. Create windows user account for SVN
  2. Enable quota control for all NTFS drives (My Computer -> Drive -> Properties -> ...)
  3. Setup quota limit to size you need (for ex, 20 Mb)
  4. Configure SVN server to run under account you just created
  5. Enjoy!

Upvotes: 1

Kat
Kat

Reputation: 56

If you are using apache server you might be able to do (I've never had cause to do it myself so Its not granteed to work)

LimitRequestBody 524288000

in your directory configuration to limit commits, To limit the overall repository size I'd suggest you use quotas... I imagine it'll die rather ambiguously through once you hit the quota mind. Out of curiousity what do you have against pre-commits?

Upvotes: 0

Related Questions