Backup the 5apps ejabberd database and uploads dir

This commit is contained in:
Greg Karékinian 2019-05-14 15:16:28 +02:00
parent bd9491675f
commit f81b7c82de

View File

@ -26,10 +26,14 @@
unless node.chef_environment == "development"
# backup the data dir and the config files
node.override["backup"]["archives"]["ejabberd"] = ["/opt/ejabberd", "/var/www/xmpp.kosmos.org"]
node.override["backup"]["archives"]["ejabberd"] = ["/opt/ejabberd", "/var/www/xmpp.kosmos.org", "/var/www/xmpp.5apps.com"]
unless node["backup"]["postgresql"]["databases"].include? "ejabberd"
node.override["backup"]["postgresql"]["databases"] =
node["backup"]["postgresql"]["databases"].to_a << "ejabberd"
end
unless node["backup"]["postgresql"]["databases"].include? "ejabberd_5apps"
node.override["backup"]["postgresql"]["databases"] =
node["backup"]["postgresql"]["databases"].to_a << "ejabberd_5apps"
end
include_recipe "backup"
end