Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit 8cf9db4

Browse files
committed
Various adjustments
1 parent dd358db commit 8cf9db4

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [v0.1.15] - 2018-11-19
88
### Added
9-
- Add customizable log driver option
10-
- Add postgres-backup container
11-
- Add host cron job for postgres backups
12-
- Add security label disable for selinux based systems
9+
- Customizable log driver option
10+
- Postgres-backup container
11+
- Host cron job for postgres backups
12+
- Security label disable for selinux based systems
1313

1414
## [v0.1.14] - 2018-11-08
1515
### Added

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,17 @@ The [Moodle eMailTest](https://moodle.org/plugins/local_mailtest) plugin is bake
8888
openssl req -x509 -newkey rsa:4096 -keyout moodle.key -out moodle.crt -days 365 -nodes -subj "/C=CA/ST=ON/L=Toronto/O=SC/OU=Org/CN=www.example.com"
8989
```
9090

91-
## Manual backups
91+
## Backup and Restore
92+
93+
### Manual backups
9294

9395
On systems installed from .deb package, a cronjob should be automatically setup to perform backups. On a development system, you can manually run the same process:
9496

9597
```
9698
docker-compose run postgres-backup /bin/backup_db
9799
```
98100
99-
## Restoring a database backup
101+
### Restoring a database backup
100102
101103
First, ensure you have a backup and delta to restore from! On systems installed from .deb package, the files are stored on the docker host under /backups by default.
102104
File renamed without changes.

dc.deb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ services:
7070
- "/package/dc.prod-dbonly.yml=/etc/moodle-docker/"
7171
- "/package/docker-compose.yml=/etc/moodle-docker/"
7272
- "/package/systemd/moodle-docker.service=/lib/systemd/system/"
73-
- "/package/systemd/postgres-backup=/etc/cron.d/"
73+
- "/package/cron/postgres-backup=/etc/cron.d/"
7474
environment:
7575
BUILD_VERSION: "${BUILD_VERSION}"
7676
MOODLE_VERSION: "${MOODLE_VERSION}"

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ x-secopts:
1111
security_opt:
1212
- label:disable
1313

14-
1514
services:
1615
nginx-php-moodle:
1716
networks:
@@ -93,7 +92,9 @@ services:
9392
depends_on:
9493
- "postgres"
9594
volumes:
96-
- ${MOODLE_BACKUP_ROOT}:/backup:Z
95+
- type: bind
96+
source: ${MOODLE_BACKUP_ROOT}
97+
target: /backup
9798
environment:
9899
POSTGRES_PASSWORD: "${PGSQL_PASSWORD}"
99100
POSTGRES_USER: "${PGSQL_USER}"

0 commit comments

Comments
 (0)