Need help delimiting and maybe fixing damage done by rm -r

Nextcloud version : 15.0.4
Operating system and version: Ubuntu 18.04
Apache or nginx version : 2.4.29
PHP version : 7.1

The issue you are facing: After mistakenly using “rm -r” on the nextcloud data directory I’m searching for a way to list what files got removed to restore them from a backup (and ideally restore it, but that’s probably out of the question).

Been trying to get them from the sql table “oc_filecache”, but it doesn’t list who the file originally pertained to. Stopped the web server to avoid the clients syncing with the erased files and to be able to restore manually their newer versions if needed. Any idea on how to proceed?

Steps to replicate it:

  1. Open nextcloud data directory
  2. rm -r whole directory for 5 seconds
  3. Ctrl + C to stop process

Output logs not relevant

If your backup has a synced folder you can always user rsync. But your best best is to restore everything from backup. Or restore to a new folder and then rsync everything that is missing.