I actually think I understand why it’s doing that, but it’s just a funny thing.
Here’s my setup. Basically I have incremental daily backup of ~12 GB of my important documents. Every day my script makes hardlinks to files that didn’t change and adds new “bytes” of data of the files that did change.
Basically the file size of the backup never changes and 30gigs of my EC2 instance will be enough for good many years in the future. BUT due to the nature of the hardlinks Nexcloud thinks of them as the files so over time I have this:
But the actual space that is taken is only ~15gb of the hard drive. I just found it interesting. Well anyways, it could be cool if I could remove the “Your storage is almost full” message as it will not be full in the near future.
(1) download the patched one
(2) backup (move) the original file (e.g. sudo mv /var/www/nextcloud/lib/private/helper.php ~/helper.php)
(3) put the new file to /var/www/nextcloud/lib/private/helper.php
(4) restart nginx (service nginx restart) or apache