Skip to content
Snippets Groups Projects
Verified Commit ffed88c0 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Patch

parent eb5e1695
Branches
No related tags found
1 merge request!33Fix accent sensitivity
Pipeline #60562 passed
version: '3.6' version: '3.6'
services: services:
sqldb: sqldb:
image: mariadb:10.5 image: mariadb:11.4
volumes: volumes:
- type: volume - type: volume
source: "caosdb-sqldata" source: "caosdb-sqldata"
......
...@@ -62,10 +62,10 @@ test-dump-update: ...@@ -62,10 +62,10 @@ test-dump-update:
# Run tests with a database which is started in a MariaDB Docker container # Run tests with a database which is started in a MariaDB Docker container
.PHONY: test-docker .PHONY: test-docker
test-docker: test-docker:
@docker kill caosdb-mysqlserver-test || true @docker kill linkahead-mysqlserver-test || true
@docker container rm -v caosdb-mysqlserver-test || true @docker container rm -v linkahead-mysqlserver-test || true
@docker run --name caosdb-mysqlserver-test -p "3307:3306" \ @docker run --name linkahead-mysqlserver-test -p "3306:3306" \
-e MYSQL_ROOT_PASSWORD="pass-for-test" -d mariadb:10.11 -e MYSQL_ROOT_PASSWORD="pass-for-test" -d mariadb:11.4
@sleep 10 @sleep 10
MAINPATH=$(realpath tests/docker_env) utils/make_db test --fresh MAINPATH=$(realpath tests/docker_env) utils/make_db test --fresh
make test-docker-stop make test-docker-stop
...@@ -73,8 +73,8 @@ test-docker: ...@@ -73,8 +73,8 @@ test-docker:
# if automatic stopping failed # if automatic stopping failed
.PHONY: test-docker-stop .PHONY: test-docker-stop
test-docker-stop: test-docker-stop:
docker kill caosdb-mysqlserver-test docker kill linkahead-mysqlserver-test
docker container rm -v caosdb-mysqlserver-test docker container rm -v linkahead-mysqlserver-test
# Compile the standalone documentation # Compile the standalone documentation
.PHONY: doc .PHONY: doc
......
Maintenance Maintenance
=========== ===========
Creating a Backup Creating a Backup
----------------- -----------------
You can use the Python script ``utils/backup.py`` to create a backup (SQL dump) You can use the Python script ``utils/backup.py`` to create a backup (SQL dump)
of the SQL-Backend:: of the SQL-Backend::
./utils/backup.py -d folder/where/the/backup/is/created ./utils/backup.py -d folder/where/the/backup/is/created
You can do this while CaosDB is online. You can do this while LinkAhead is online.
Restoring a Backup Restoring a Backup
------------------ ------------------
CaosDB should be offline for restoring. LinkAhead should be offline for restoring.
You can use the Bash script ``utils/make_db`` to restore a backup (SQL dump) You can use the Bash script ``utils/make_db`` to restore a backup (SQL dump)
of the SQL-Backend:: of the SQL-Backend::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment