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.