There is (soon) a way to do this, if you use the rest-server backend. Pending the merge of this PR, then this other PR will be ready to go. It allows you to limit the size of the repository you back up to.
When @fd0 has some time to approve the changes, I think we can make this happen.