Move remote wiki backup to app script

This commit is contained in:
Bob Mottram 2016-07-09 21:28:07 +01:00
parent ee157c9253
commit 1467b02487
2 changed files with 5 additions and 10 deletions

View File

@ -97,7 +97,11 @@ function restore_local_wiki {
}
function backup_remote_wiki {
echo -n ''
if [ -d /etc/dokuwiki ]; then
echo $"Backing up wiki"
backup_directory_to_friend /var/lib/dokuwiki wiki
backup_directory_to_friend /etc/dokuwiki wiki2
fi
}
function restore_remote_wiki {

View File

@ -244,14 +244,6 @@ function backup_tor {
fi
}
function backup_wiki {
if [ -d /etc/dokuwiki ]; then
echo $"Backing up wiki"
backup_directory_to_friend /var/lib/dokuwiki wiki
backup_directory_to_friend /etc/dokuwiki wiki2
fi
}
function backup_blog {
if grep -q "Blog domain" $COMPLETION_FILE; then
FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}')
@ -489,7 +481,6 @@ if [[ $TEST_MODE == "no" ]]; then
backup_admin_readme
backup_mariadb
backup_wiki
backup_blog
backup_certs
backup_mailing_list