Backup the mastodon PostgreSQL database
This commit is contained in:
parent
6bea5b7567
commit
99a5091760
|
@ -13,3 +13,4 @@ depends "application_ruby"
|
|||
depends "application_javascript"
|
||||
depends "postgresql"
|
||||
depends "database"
|
||||
depends "backup"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue