Leia este guia em Português.
This script workaround a limitation of OneDrive for Business, which doesn't allow you to reduce the number of versions to less than 100.
- curl
- jq
- rclone
Set the variables below:
REMOTE="onedrive"
VERSIONS_TO_KEEP=3
and execute the script:
$ ./onedrive-clean-versions.sh onedrive-folder
Thanks to everyone involved in issue #4106 of rclone, especially for Saoneth and Zvezdin who created the first version of this script.