Backup the mastodon PostgreSQL database

This commit is contained in:
Greg 2017-04-07 18:21:20 +02:00
parent 6bea5b7567
commit 99a5091760
2 changed files with 8 additions and 6 deletions

View File

@ -13,3 +13,4 @@ depends "application_ruby"
depends "application_javascript"
depends "postgresql"
depends "database"
depends "backup"

View File

@ -148,9 +148,10 @@ application mastodon_path do
end
end
# unless node.chef_environment == "development"
# node.override["backup"]["postgresql"]["host"] = "localhost"
# node.override["backup"]["postgresql"]["username"] = "postgres"
# node.override["backup"]["postgresql"]["password"] = node['postgresql']['password']['postgres']
# include_recipe "backup"
# end
unless node.chef_environment == "development"
# Backup the database to S3
node.override["backup"]["postgresql"]["host"] = "localhost"
node.override["backup"]["postgresql"]["username"] = "postgres"
node.override["backup"]["postgresql"]["password"] = node['postgresql']['password']['postgres']
include_recipe "backup"
end