Version control
The versioning app expires old versions automatically to make sure that the user doesn’t run out of space. This pattern is used to delete old versions:
- For the first second we keep one version
- For the first minute Nextcloud keeps one version every 10 seconds
- For the first 24 hours Nextcloud keeps one version every hour
- After the first 30 days Nextcloud keeps one version every week
The version app never uses more that 50% of the user’s currently available free space. If the stored versions exceed this limit, Nextcloud deletes the oldest versions until it meets the disk space limit again.