How to backup Volumes using command line #23054
enricosoft
started this conversation in
General
Replies: 2 comments
-
I managed to export/import volumes like this with a remote Podman on MacOS. An example below for exporting volumes from Podman 4 and importing them again into Podman 5. Exporting
Importing
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to backup all the volumes related to a container.
The container is running as part of docker-compose.
I'm running podman on windows server 2022.
I found the podman doc about how to export volume to external tar file.
https://docs.podman.io/en/latest/markdown/podman-volume-export.1.html
I tried these and I attached the related error for each line:
podman volume export myVolName --output uploads.tar // Error: accepts 1 arg(s), received 3
podman volume export myVolName -o=uploads.tar // Error: accepts 1 arg(s), received 2
podman volume export myVolName > uploads.tar // Error: cannot use command "podman volume export" with the remote podman client
Seems that the documentation is not updated for example 1 and 2.
For sample 3 I don't understand why I can't run that command from the podman CLI installed on the same server.
Should I run the container with privileges? If so, how?
Does Podman Desktop have its own terminal to run this kind of commands? From GUI I cannot performs actions on volumes... I cannot select a volume and I don't see any menu in "actions" column
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions