15 lines
456 B
YAML
15 lines
456 B
YAML
---
|
|
- include_tasks: "{{ installer_path }}/app/playbooks/tasks/start-db-only.yml"
|
|
|
|
- name: Backing up database
|
|
shell:
|
|
docker exec -i $(docker ps --filter "name=onelab_db|onelab-db" -q) pg_dump -Upostgres -Fc > {{ onelab_path }}/db-migration-postgres.tar.gz
|
|
become: yes
|
|
|
|
- include_tasks: "{{ installer_path }}/app/playbooks/tasks/stop-db-only.yml"
|
|
|
|
- name: Creating lock file
|
|
shell: >
|
|
touch {{ onelab_path }}/.lock_db_migration
|
|
become: true
|