Browse Source

new: [odoo-tecnativa,postgres] adding backup relations

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
0k/dev/master
Valentin Lab 5 years ago
parent
commit
9640590d82
  1. 14
      odoo-tecnativa/metadata.yml
  2. 20
      postgres/metadata.yml

14
odoo-tecnativa/metadata.yml

@ -64,6 +64,20 @@ uses:
echo "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
fi
backup:
constraint: recommended
auto: pair
solves:
backup: "Automatic regular backup"
default-options:
## First pattern matching wins, no pattern matching includes.
## include-patterns are checked first, then exclude-patterns
## Patterns rules:
## - ending / for directory
## - '*' authorized
## - must start with a '/', will start from $SERVICE_DATASTORE
exclude-patterns:
- "/var/lib/odoo/sessions/"
# network-isolation:
# whitelist: ## required external services used by this service

20
postgres/metadata.yml

@ -10,6 +10,24 @@ uses:
constraint: optional
auto: pair
solves:
backup: "Automatic regular backups"
backup: "Automatic regular dumps for backuping purpose"
default-options:
schedule: "31 * * * *" ## schedule backup every hour
## This one is useful only if previous relation is used
backup:
constraint: optional
auto: pair
solves:
backup: "Automatic regular backups of dumps"
default-options:
## First pattern matching wins, no pattern matching includes.
## include-patterns are checked first, then exclude-patterns
## Patterns rules:
## - ending / for directory
## - '*' authorized
## - must start with a '/', will start from $SERVICE_DATASTORE
# include-patterns:
# - /var/backups/pg/
exclude-patterns:
- "/var/lib/" ## postgres working data files
- "/var/backups/pg/*.inprogress" ## database dump in progress
Loading…
Cancel
Save