Browse Source

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

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
dev
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 "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/" echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
fi 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: # network-isolation:
# whitelist: ## required external services used by this service # whitelist: ## required external services used by this service

20
postgres/metadata.yml

@ -10,6 +10,24 @@ uses:
constraint: optional constraint: optional
auto: pair auto: pair
solves: solves:
backup: "Automatic regular backups"
backup: "Automatic regular dumps for backuping purpose"
default-options: default-options:
schedule: "31 * * * *" ## schedule backup every hour 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