Move remote wiki backup to app script
This commit is contained in:
parent
ee157c9253
commit
1467b02487
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue