Is there a method to move a whole nextcloudpi docker container install to a new drive?
I have tried copying the whole of old drive to the new drive, and restarting the container with it pointing at the new drive, but the web interface is hangs at āInitializing NextCloudPi for the first timeā
whole docker == docker-compose file + docker volumes with your nc data/config
you make a backup of your ānc data/configā-docker volumes. run the docker-compose file (creation of the container) and put the data in the new volumes. in the docker compose file the volumes are defined.
<nextcloud(db)> is the name or id of your containers.
may be openmediafault has a web gui to show you this info too.
stop and remove both container.
mount your new disk.
create directories according to the needed volumes.
copy/rsync on the host all files from the old volume directories to the new disk.
recreate the container but this time with the path to new volumes.
no warrant. if you have important data sync them to a client and make a backup there too.
Thats pretty much what I did initially, but it got stuck on āInitializing NextCloudPi for the first timeā when I tried to access through the browser.
Iām wondering if there is something going on in the background and maybe I need to leave it for a day or two and see if it works itself out.
below is the content of the 2 drives (Nextcloud is the old, NCP is the new)
root@NAS:~# ls /sharedfolders/Nextcloud/nextcloud/config/
config.php config.sample.php
root@NAS:~# ls /sharedfolders/NCP/nextcloud/config/
config.php config.sample.php
As I write this I am thinking that it may be a permissions issue, as I did the copy using root but the container (maybe wrongly) has the PUID and PGID set to my user.
Bhahaha! Thatās funny indeed. However, I have been used OMV for years, and it is far from unreliable. Generally the hardware itself fails more often than the software.