Backup the mastodon PostgreSQL database

This commit is contained in:
Greg Karékinian 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 "application_javascript"
depends "postgresql" depends "postgresql"
depends "database" depends "database"
depends "backup"

View File

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