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 "application_javascript"
 | 
				
			||||||
depends "postgresql"
 | 
					depends "postgresql"
 | 
				
			||||||
depends "database"
 | 
					depends "database"
 | 
				
			||||||
 | 
					depends "backup"
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user