fork 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.

34 lines
1.1 KiB

  1. summary: "Postgres server"
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. data-resources:
  4. - /var/lib/postgresql/data
  5. provides:
  6. postgres-database:
  7. sql-database:
  8. uses:
  9. schedule-command:
  10. constraint: optional
  11. auto: pair
  12. solves:
  13. backup: "Automatic regular dumps for backuping purpose"
  14. default-options:
  15. schedule: "31 * * * *" ## schedule backup every hour
  16. ## This one is useful only if previous relation is used
  17. backup:
  18. constraint: recommended
  19. auto: pair
  20. solves:
  21. backup: "Automatic regular backups of dumps"
  22. default-options:
  23. ## First pattern matching wins, no pattern matching includes.
  24. ## include-patterns are checked first, then exclude-patterns
  25. ## Patterns rules:
  26. ## - ending / for directory
  27. ## - '*' authorized
  28. ## - must start with a '/', will start from $SERVICE_DATASTORE
  29. # include-patterns:
  30. # - /var/backups/pg/
  31. exclude-patterns:
  32. - "/var/lib/" ## postgres working data files
  33. - "/var/backups/pg/*.inprogress" ## database dump in progress