Make calling database backup to usb simpler

This commit is contained in:
Bob Mottram 2016-07-07 17:45:57 +01:00
parent f0925ebb97
commit 0b54cf5641
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
8 changed files with 570 additions and 570 deletions

File diff suppressed because it is too large Load Diff

View File

@ -56,11 +56,10 @@ function backup_local_gogs {
echo $"Backing up gogs"
function_check backup_database_local
backup_database_local gogs
function_check backup_database_to_usb
backup_database_to_usb gogs
function_check backup_directory_to_usb
backup_directory_to_usb /root/tempgogsdata gogsdata
backup_directory_to_usb $GOPATH/src/github.com/gogits/gogs/custom gogs
backup_directory_to_usb /home/git/gogs-repositories gogsrepos
backup_directory_to_usb /home/git/.ssh gogsssh

View File

@ -66,11 +66,9 @@ function backup_local_hubzilla {
HUBZILLA_DOMAIN_NAME='hubzilla'
HUBZILLA_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Hubzilla domain" | awk -F ':' '{print $2}')
function_check backup_database_local
backup_database_local hubzilla
function_check backup_database_to_usb
backup_database_to_usb hubzilla
function_check backup_directory_to_usb
backup_directory_to_usb /root/temphubzilladata hubzilladata
backup_directory_to_usb /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs hubzilla
echo $"Hubzilla backup complete"

View File

@ -87,11 +87,9 @@ function backup_local_rss {
echo $"Backing up ttrss"
function_check backup_database_local
backup_database_local ttrss
function_check backup_database_to_usb
backup_database_to_usb ttrss
function_check backup_directory_to_usb
backup_directory_to_usb /root/tempttrssdata ttrssdata
backup_directory_to_usb /etc/share/tt-rss ttrss
echo $"ttrss backup complete"

View File

@ -64,11 +64,11 @@ function upgrade_searx {
}
function backup_local_searx {
echo ''
echo -n ''
}
function backup_remote_searx {
echo ''
echo -n ''
}
function remove_searx {

View File

@ -38,15 +38,15 @@ VOIP_TURN_TLS_PORT=5349
VOIP_TURN_NONCE=
function upgrade_sip {
echo ''
echo -n ''
}
function backup_local_sip {
echo ''
echo -n ''
}
function backup_remote_sip {
echo ''
echo -n ''
}
function remove_sip {

View File

@ -40,15 +40,15 @@ SYNCTHING_SHARED_DATA=/var/lib/syncthing/SyncShared
SYNCTHING_USER_IDS_FILE='.syncthingids'
function upgrade_syncthing {
echo ''
echo -n ''
}
function backup_local_syncthing {
echo ''
echo -n ''
}
function backup_remote_syncthing {
echo ''
echo -n ''
}
function remove_syncthing {

View File

@ -261,4 +261,10 @@ function backup_directory_to_usb {
fi
}
function backup_database_to_usb {
database_name=$1
backup_database_local $database_name
backup_directory_to_usb /root/temp${database_name}data ${database_name}data
}
# NOTE: deliberately no exit 0