Skip to content

Commit bede51a

Browse files
committed
Change SQL import command to use gzipped file
Updated the command for importing SQL files in Docker Desktop to use a gzipped file.
1 parent 44958b7 commit bede51a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/content/docs/administration/backup.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ a dump every two hours. See [configuration](https://github.com/databacker/mysql-
1414
The automatically created backups are located in the [`backups` directory](/administration/docker/) of the docker configuration package.
1515

1616
#### When using Docker
17+
1718
You can explicitly create a dump of your dockerized database while the docker containers are running using the command on your host system shell:
1819

1920
```shell
2021
docker exec mysql mysqldump -u root -p123456 archivesspace | gzip > /tmp/db.$(date +%F.%H%M%S).sql.gz
2122
```
2223

2324
#### When using Docker Desktop
25+
2426
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:
2527

2628
```shell
@@ -153,6 +155,6 @@ docker exec mysql mysql -uas -pas123 archivesspace < /tmp/db.2025-02-26.164907.s
153155

154156
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:
155157

156-
```shell
157-
mysql -uas -pas123 archivesspace < /tmp/db.2025-02-26.164907.sql
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
158160
```

0 commit comments

Comments
 (0)