Local backup for mumble

This commit is contained in:
Bob Mottram 2016-07-07 12:12:33 +01:00
parent 28cc306cd8
commit 278440a39c
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
4 changed files with 36 additions and 25 deletions

View File

@ -50,10 +50,9 @@ function upgrade_gogs {
}
function backup_local_gogs {
GIT_DOMAIN_NAME='gogs'
if grep -q "Gogs domain" $COMPLETION_FILE; then
if [ -d /home/git/gogs-repositories ]; then
GIT_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Gogs domain" | awk -F ':' '{print $2}')
fi
echo $"Backing up gogs"
@ -67,6 +66,8 @@ function backup_local_gogs {
backup_directory_to_usb /home/git/.ssh gogsssh
echo $"Gogs backup complete"
fi
fi
}
function backup_remote_gogs {

View File

@ -37,15 +37,15 @@ IRC_ONION_PORT=6697
IRC_PASSWORD=
function upgrade_irc {
echo ''
echo -n ''
}
function backup_local_irc {
echo ''
echo -n ''
}
function backup_remote_irc {
echo ''
echo -n ''
}
function remove_irc {

View File

@ -38,19 +38,19 @@ MEDIAGOBLIN_ADMIN_PASSWORD=
MEDIAGOBLIN_ONION_PORT=8096
function upgrade_mediagoblin {
echo ''
echo -n ''
}
function backup_local_mediagoblin {
echo ''
echo -n ''
}
function backup_remote_mediagoblin {
echo ''
echo -n ''
}
function remove_mediagoblin {
echo ''
echo -n ''
}
function install_mediagoblin {

View File

@ -40,11 +40,21 @@ VOIP_DATABASE="mumble-server.sqlite"
VOIP_CONFIG_FILE="mumble-server.ini"
function upgrade_mumble {
echo ''
echo -n ''
}
function backup_local_mumble {
echo ''
if [ -f /etc/mumble-server.ini ]; then
echo $"Backing up Mumble settings"
if [ ! -d /root/tempvoipbackup ]; then
mkdir -p /root/tempvoipbackup
fi
cp -f /etc/mumble-server.ini /root/tempvoipbackup
cp -f /var/lib/mumble-server/mumble-server.sqlite /root/tempvoipbackup
cp -f /etc/sipwitch.conf /root/tempvoipbackup
backup_directory_to_usb /root/tempvoipbackup voip
echo $"Mumble settings backup complete"
fi
}
function backup_remote_mumble {