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.

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