Library space measurement

Hello Seafile community,

Due to a recent storage problem we have had to flush a few libraries and resync them.
However, the libraries size has not been reset so it is completely inconsistant.

Is there a way to reset a library’s size from Seafile Server ?
Please, don’t answer me to perform a su -h because the library size does not include the file history…

Thanks in advance !


For those who might be interested, you can get the “right” library size using the block backend storage from your S3 storage.
The library’s size is stored within the seafile-db.RepoSize table.
So, a way to reset the library’s size is to get it from the S3 storage and put it in the database.

1 Like