Backup the 5apps ejabberd database and uploads dir
This commit is contained in:
parent
bd9491675f
commit
f81b7c82de
@ -26,10 +26,14 @@
|
|||||||
|
|
||||||
unless node.chef_environment == "development"
|
unless node.chef_environment == "development"
|
||||||
# backup the data dir and the config files
|
# 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"
|
unless node["backup"]["postgresql"]["databases"].include? "ejabberd"
|
||||||
node.override["backup"]["postgresql"]["databases"] =
|
node.override["backup"]["postgresql"]["databases"] =
|
||||||
node["backup"]["postgresql"]["databases"].to_a << "ejabberd"
|
node["backup"]["postgresql"]["databases"].to_a << "ejabberd"
|
||||||
end
|
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"
|
include_recipe "backup"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user