Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Not exactly "back up", but to update portainer, all I do (via SSH) is:
Done.Code:docker stop portainer docker rm portainer sudo docker pull portainer/portainer-ce:latest
There probably are other ways...
Hi Telos, thanks for your reply. This what you mention is already known for update, but not for backup. As taken from portainer suggestion Settings - Portainer Documentation is the way, but I realized that in my version the "backup portainer" section does not exist as presented in the docs.
What if something goes wrong during update? This is why they recommend a backup.
This would be the right thing, but on my portainer there is no such feature. The pic below shows the end of the settings page.What about this?
That's why I want to make an update, but not without making a backup first, for the reason I already say earlier.That's quite old. I'm on 2.11.
Also... you should be using the portainer-ce image (not the old "portainer" image).
Thank you.I think the main question is: have you deployed portainer with a map of /data to a NAS folder?
When I updated from pre-ce to post-ce images the stop, rm, pull, run process is what I did, only changing the image name with the '-ce' suffix. Because I had already been using a NAS folder for /data then the update was simple. In fact I have scripted the update so that now I just run that.
- YES:
- Have you backed up the NAS folder?
- YES: check it really is backed up and up to date.
- NO: backup the NAS folder.
- NO:
- Create a NAS folder that you will use to hold portainer's data.
- In portainer and SSH find the volume that is used by portainer for it's /data.
- Copy the volume's contents to the NAS folder
- Backup the NAS folder
- Follow the instructions above or here (option 1) Upgrading on Docker - Portainer Documentation .
- Note: use tag 'latest' instead of '2.11.0' if you just want the most recent image version.
- Note: change 'portainer_data' to the path to your NAS folder.
- Note: the instructions assume you named the container 'portainer'.
I understand your reticence if you have a complicated setup, but for me portainer just augments the DSM Docker with a few bells and whistles.
You're welcome. But if you had replied to the earlier posts if you had mapped /data to a NAS folder then it wouldn't have taken so many posts. I had to think how to provide a response that covered more scenarios because of this missing info.Thank you.
We use essential cookies to make this site work, and optional cookies to enhance your experience.