theomolenaar
Dabbler
- Joined
- Jun 12, 2016
- Messages
- 43
A few days ago I watched this video about moving portainer data to a persistent volume. In this case NFS. Good idea!! I selected the ombi container for testing. See pictues for some settings I used when following the video.
I created a test container that I could use for copying (migrating) the local ombi containter data to the ombi nfs share. See volume mapping below.
The NFS share settings in Truenas:
Under hosts I have all the client that I want to have access to this share. One of the hosts ip addresses is the ip of the server where portainer is running on ;-)
Now back to the test container.
Inside this test container I opened the CLI and cd into the config directory:
As you can see the 'NFS share folder' config-migrate is accessible from inside this container so I should be able to copy the config directory (with the files and folders inside) while maintaining permissions. This is the command I used:
Any ideas what to do next?
I created a test container that I could use for copying (migrating) the local ombi containter data to the ombi nfs share. See volume mapping below.
The NFS share settings in Truenas:
Under hosts I have all the client that I want to have access to this share. One of the hosts ip addresses is the ip of the server where portainer is running on ;-)
Now back to the test container.
Inside this test container I opened the CLI and cd into the config directory:
As you can see the 'NFS share folder' config-migrate is accessible from inside this container so I should be able to copy the config directory (with the files and folders inside) while maintaining permissions. This is the command I used:
cp -r config/* config-migrate/
. This command didn't transfer the permissions. Running cp -ra config/* config-migrate/
didn't work either. As you can see.Any ideas what to do next?
Attachments
Last edited: