Restore Owncloud after data loss

Hello,

I lost the data in the data folder of owncloud (corrupt hard drive) but not the database (on another drive). Is there a way to keep the existing database and recreate the data folder without starting with a fresh install ? I still have all the data that was on the server on my personnal computer.

Thanks

I too want to restore data after a hard disk failure while keeping my database. I have followed the steps in the link below to try and move the data directory, but the browser still tells me that my data directory is invalid.

https://doc.owncloud.org/server/10.0/admin_manual/maintenance/manually-moving-data-folders.html

Thanks

I am running OC 10

Hey,

i did the following search:

https://central.owncloud.org/search?q=data%20directory%20invalid

and found the following FAQ below which could contain some information on your issue:

Thanks, turns out it was a permissions issue. Running sudo -u www-data ls -la /path/to/folder made that clear.

Although weirdly it was because the apache user didn’t have access to the parent folder (/path/to), it already had access to the owncloud folder (/path/to/folder). Maybe this will help someone.

1 Like