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

@@ -58,6 +58,12 @@ if node["backup"]["default_model"]
end
include_recipe 'logrotate'
if node["backup"]["mysql"]
# Install MySQL client (includes mysqldump)
mysql_client 'default' do
action :create
end
end
logrotate_app 'backup' do
path '/var/log/backup.log'