I’m running 10.0.10 on an 14.04.6 ubuntu server (yes it’s old and needs updating I know)
I have had an “incident” where a lot of files seem to have been deleted and I need to restore them. I have two things that I’m after some pointers / help with.
1/ Is there a way to find out which user deleted a file and which sync client they were using at the time (or if they were using the web interface)
2/ Is there a way to bulk restore files. I think I want to select all files deleted on a specific day (27/10/2020) and have them restored to their original location unless the file exists in the original location.
I know I can scroll through the deleted files area and tick each file but that will take me a very, very long time so looking for something maybe on the command line using OCC?
Have a look in your apache and ownCloud logs. Depending on your loglevel in ownCloud you might find it there. If not the apache access log should show every single request to the server. There you should be able to find the WebDAV DELETEs, with an IP address and perhaps a username.
I don’t think there is a way in the web interface. I would have a look if there is something in the API (I doubt it, as the ownCloud client doesn’t offer any file restore functionality) and otherwise just restore the files in the storage backend and run a files scan for the user.
The apache logs and backend restore / re-scan were on my list but in the “ways I really don’t want to do this if I can avoid it” pile. Do you know if version history will be retained if I recover files that way?