I mentioned elsewhere that I my pi lost power and isn’t behaving right (docker says it’s running but I cannot communicate via local network, and cannot get X started to attempt from localhost). At first I was going to try to fix things, but after noticing some other issues (such as not being able to start X) I’m wondering if the USB that I was booting from isn’t a POS (and part of the problem) and am thinking that re-installing might be my best option. While it wouldn’t be the end of the world if I started from scratch as I’ve only been using nextcloud for about 3 weeks and I have other copies of all the data, I’d like to try to salvage my user configurations and data if possible. When I installed I used the new feature to store the data on a specific and separate drive.
pi@hostname:/mnt $ docker run -d -p 4443:4443 -p 444:443 -p 8080:80 -v /media/USB/NCstorage/ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi-armhf cloud.[domain].[tld]
Please ignore the port translations there, I’m doing some network trickery to get other services running as well.
I have been able to mount that /media/USB/NCstorage/ncdata/data directory on a newly installed Raspbian OS, however I noticed there were some permissions issues when first trying to mount. I was originally thinking that if I did a fresh install of docker the exact same way I did on my first run-through and then powered it off and replaced it’s data directory with a copy from my old one I might get away with it. Will this work? Will I have to do any work to make permissions right (both linux and NextCloud user permissions)?
Thanks for any help. This was exactly the sort of thing I was hoping to be able to do by storing the data elsewhere, though I was hoping to not have to do it.