Project:Backups: Difference between revisions
From MaRDI portal
No edit summary |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
For MariaDB backups, see [https://github.com/MaRDI4NFDI | [[File:Portainer Screenshot 1.png|thumb|[[File:Portainer Screenshot 2.png|thumb]]]] | ||
For MariaDB backups, see [https://github.com/MaRDI4NFDI/docker-backup backup container]. | |||
==== How to backup a docker volume? ==== | ==== How to backup a docker volume? ==== | ||
Line 26: | Line 27: | ||
create a new volume | create a new volume | ||
[[File:Screenshot Portainer 3 .png|thumb]] | |||
create a new container | create a new container |
Latest revision as of 10:25, 17 February 2022
For MariaDB backups, see backup container.
How to backup a docker volume?
From the commandline:
Follow
eg
user@host:~$ docker volume create --name backup-220106-wdqs
backup-220106-wdqs
user@host:~$ docker run --rm \
-i \
-t \
-v docker_query-service-data:/from \
-v backup-220106-wdqs:/to \
alpine ash -c "cd /from ; cp -av . /to"
'./data.jnl' -> '/to/./data.jnl'
'.' -> '/to/.'
From potainer
create a new volume
create a new container