forked from 0k/0k-charms
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
summary: "Postgres server"
|
|
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
|
|
data-resources:
|
|
- /var/lib/postgresql/data
|
|
provides:
|
|
postgres-database:
|
|
|
|
uses:
|
|
schedule-command:
|
|
constraint: optional
|
|
auto: pair
|
|
solves:
|
|
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: recommended
|
|
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
|