Project:Backups: Difference between revisions
From MaRDI portal
No edit summary |
|||
Line 21: | Line 21: | ||
'.' -> '/to/.' | '.' -> '/to/.' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
From potainer | |||
create a new volume | |||
create a new container |
Revision as of 21:50, 6 January 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