You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance backup and restore instructions for Docker
Clarified instructions for creating and restoring database dumps in Docker environments, including specific commands for host system and Docker Desktop.
You can explicitly create a dump of your dockerized database while the docker containers are running using the command on the "Exec" tab of your mysql container:
You can then export the created database dump from the `/tmp` directory of your mysql container using the "Files" tab.
33
+
22
34
## Managing your own backups
23
35
24
36
Performing regular backups of your MySQL database is critical. ArchivesSpace stores
@@ -133,8 +145,16 @@ cp -a /unpacked/zip/demo_db_backups/demo_db_backup_1373323208_25926/archivesspac
133
145
134
146
#### When running on Docker
135
147
136
-
If you are using the Docker configuration package to run ArchivesSpace you can restore a database dump onto your `archivesspace` MySQL database with the following command:
148
+
If you are using the Docker configuration package to run ArchivesSpace you can restore a database dump onto your `archivesspace` MySQL database with the following command on your host system shell:
137
149
138
150
```shell
139
151
docker exec mysql mysql -uas -pas123 archivesspace < /tmp/db.2025-02-26.164907.sql
140
152
```
153
+
154
+
##### When using Docker Desktop
155
+
156
+
On docker Desktop, you can import your sql file into the `/tmp/` directrory using the "Files" tab of your mysql container. Afterwards, on the "Exec" tab run the command:
157
+
158
+
```shellgunzip -c /tmp/db.2026-02-17.155254.sql.gz | mysql -uas -pas123 archivesspace
159
+
gunzip -c /tmp/db.2026-02-17.155254.sql.gz | mysql -uas -pas123 archivesspace
0 commit comments