Hi,
I’ll fill in the following info later …
Nextcloud version (eg, 20.0.5): replace me
Operating system and version (eg, Ubuntu 20.04): replace me
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me
My Ubuntu machine harddrive ran out of space due to Nextcloud copying deleted files into its main folder. I have files stored on an external HD due to not having enough space on my main device. So first …
How do I make Nextcloud store deleted files on external storage ?
So as part of making space on the device again I unmounted the external hardrive. I had not stopped apache2. This led to deletion of all the files on external storage once it was reconnected. I did not delete the files on any synced devices. This surprised me as, even though I realised Nextcloud had not been stopped (apache2), nothing had been explicitly deleted only unmounted. Luckily I had a backup of all the data elsewhere.
How can I prevent Nextcloud assuming files have been deleted when an external storage is unmounted or removed ?
Any help appreciated.