I have NextCloud 15.0.11 on server, 2.6.4git client on Ubuntu 16.04 Desktop.
I have just met a problem with many files (gigabytes) somehow got zero length on server (during sync process - I was truing to make a backup copy on removable HDD drive connected to local computer) and after that some local copies were partially corrupted too during back sync. Luckily I can see zeroed files in their places on server and they also have non-zero version in version history, so I (I hope) can restore each one of them via web interface.
I have described the issue itself as bugreport here:
Files got zero length on server (and then started to turn local copy to zeros) during sync
Here I want to ask for help, how can I restore from this situation and get my files back and have some questions:
Is there a way to make mass-restore all files to some specific version (for example, specified by date and time)? Preferably in semi-automatic mode (so I could see the whole list of files to revert before revert to confirm). “Recent changes” view does show too small number of files (looks like I have hundreds if not thousands files got zeroed to restore).
If not, can I at least somehow make global search for files with specified size (exactly 0 bytes) to show them in one big list?
My web interface did show about 302Gb used space (in low left corner) in the morning and now it shows 298Gb - after the zeroing process (I have put it on pause) (the whole disk is about 1Tb). I have read about versioning policy, I have enough free space, so I hope the versions were not deleted (as I checked random files - they are on the place). But I am a bit worried by this reduction of displayed occupied space - does it show occupied space without space taken by version history of files?
Also (hope this is not my case) would not just zeroed, but deleted files have their older versions too?