Add support for PostgreSQL backups

This commit is contained in:
Greg Karékinian
2017-04-07 18:19:55 +02:00
parent d49f28574c
commit 4e5d452aff
3 changed files with 25 additions and 15 deletions

View File

@@ -16,6 +16,10 @@ KosmosBackup.new(:default, 'default backup') do
<%- end -%>
<%- end -%>
<%- if node["backup"]["postgresql"] -%>
database PostgreSQL
<%- end -%>
<%- if node["mongodb"] -%>
<%- node["backup"]["mongodb"]["databases"].each do |db_name| -%>
database MongoDB, :"<%= db_name.to_sym %>" do |db|