Skip to content
Snippets Groups Projects
Commit fa4a3a57 authored by Bob Mottram's avatar Bob Mottram
Browse files

Move remote tox backup to app script

parent e3260ed1
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ TOXIC_COMMIT='cf16849b374e484a33a4dffa3dfb937b59d537f2'
TOXIC_FILE=/usr/local/bin/toxic
function reconfigure_tox {
echo -n ''
echo -n ''
}
function upgrade_tox {
......@@ -105,7 +105,15 @@ function restore_local_tox {
}
function backup_remote_tox {
echo -n ''
if [ -d /var/lib/tox-bootstrapd ]; then
echo "Backing up Tox node settings"
if [ -d /var/lib/tox-bootstrapd/Maildir ]; then
rm -rf /var/lib/tox-bootstrapd/Maildir
fi
cp /etc/tox-bootstrapd.conf /var/lib/tox-bootstrapd
backup_directory_to_friend /var/lib/tox-bootstrapd tox
echo "Backup of Tox node settings complete"
fi
}
function restore_remote_tox {
......
......@@ -289,17 +289,6 @@ function backup_voip {
fi
}
function backup_tox {
if [ -d /var/lib/tox-bootstrapd ]; then
echo "Backing up Tox node settings"
if [ -d /var/lib/tox-bootstrapd/Maildir ]; then
rm -rf /var/lib/tox-bootstrapd/Maildir
fi
cp /etc/tox-bootstrapd.conf /var/lib/tox-bootstrapd
backup_directory_to_friend /var/lib/tox-bootstrapd tox
fi
}
function backup_mariadb {
if [ ${#DATABASE_PASSWORD} -gt 1 ]; then
if [ ! -d /root/tempmariadb ]; then
......@@ -450,7 +439,6 @@ if [[ $TEST_MODE == "no" ]]; then
backup_mailing_list
backup_voip
backup_tox
backup_extra_directories
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment