Sync: Automatically purge old versions

With Obsidian Sync currently changes to a file are saved every few seconds when online. In general that is great as it helps to rollback changes made to a file.
But when a file ages this leads to a confusing number of versions of a file. I don’t see why I would need twenty different changes and typo corrects I made to a file edited a few months ago. Therefore from my perspective it would be great if the number of older file versions was reduced automatically over time. Nextcloud for example versions files by this scheme:

For the first second we keep one version
For the first 10 seconds Nextcloud keeps one version every 2 seconds
For the first minute Nextcloud keeps one version every 10 seconds
For the first hour Nextcloud keeps one version every minute
For the first 24 hours Nextcloud keeps one version every hour
For the first 30 days Nextcloud keeps one version every day
After the first 30 days Nextcloud keeps one version every week

https://docs.nextcloud.com/server/20/admin_manual/configuration_files/file_versioning.html

I think it would make the versioning feature more useful if something like this was implemented for Obsidian Sync.

1 Like