Project:Backups: Difference between revisions

From MaRDI portal
No edit summary
Alvaro (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
[[File:Portainer Screenshot 1.png|thumb|[[File:Portainer Screenshot 2.png|thumb]]]]
[[File:Portainer Screenshot 1.png|thumb|[[File:Portainer Screenshot 2.png|thumb]]]]
For MariaDB backups, see [https://github.com/MaRDI4NFDI/portal-compose/blob/a4f17bc8c110b8a807d38192db4cb4fe3191e5a5/docker-compose.yml#L91-L105 backup container].
For MariaDB backups, see [https://github.com/MaRDI4NFDI/docker-backup backup container].


==== How to backup a docker volume? ====
==== How to backup a docker volume? ====

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

https://github.com/gdiepen/docker-convenience-scripts/blob/fd6535b616085f272f457ba1c96d1578b374e84f/docker_clone_volume.sh#L42-L50

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