Extraneous backup messages

This commit is contained in:
Bob Mottram 2016-11-01 19:22:19 +00:00
parent 11ac6ea7d7
commit 1ee0529aab
8 changed files with 0 additions and 32 deletions

View File

@ -97,12 +97,8 @@ function backup_local_dlna {
source_directory=/var/cache/minidlna source_directory=/var/cache/minidlna
if [ -d $source_directory ]; then if [ -d $source_directory ]; then
dest_directory=dlna dest_directory=dlna
echo $"Backing up $source_directory to $dest_directory"
function_check backup_directory_to_usb function_check backup_directory_to_usb
backup_directory_to_usb $source_directory $dest_directory backup_directory_to_usb $source_directory $dest_directory
echo $"Backup to $dest_directory complete"
fi fi
} }

View File

@ -76,13 +76,9 @@ function backup_local_dokuwiki {
source_directory=/var/lib/dokuwiki source_directory=/var/lib/dokuwiki
if [ -d $source_directory ]; then if [ -d $source_directory ]; then
dest_directory=dokuwiki dest_directory=dokuwiki
echo $"Backing up $source_directory to $dest_directory"
function_check backup_directory_to_usb function_check backup_directory_to_usb
backup_directory_to_usb $source_directory $dest_directory backup_directory_to_usb $source_directory $dest_directory
backup_directory_to_usb /etc/dokuwiki dokuwiki2 backup_directory_to_usb /etc/dokuwiki dokuwiki2
echo $"Backup to $dest_directory complete"
fi fi
} }

View File

@ -366,8 +366,6 @@ function backup_local_gnusocial {
source_directory=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs source_directory=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs
if [ -d $source_directory ]; then if [ -d $source_directory ]; then
dest_directory=gnusocial dest_directory=gnusocial
echo $"Backing up $source_directory to $dest_directory"
function_check suspend_site function_check suspend_site
suspend_site ${GNUSOCIAL_DOMAIN_NAME} suspend_site ${GNUSOCIAL_DOMAIN_NAME}
@ -379,8 +377,6 @@ function backup_local_gnusocial {
function_check restart_site function_check restart_site
restart_site restart_site
echo $"Backup to $dest_directory complete"
fi fi
} }

View File

@ -203,8 +203,6 @@ function backup_local_htmly {
source_directory=/var/www/${HTMLY_DOMAIN_NAME}/htdocs source_directory=/var/www/${HTMLY_DOMAIN_NAME}/htdocs
if [ -d $source_directory ]; then if [ -d $source_directory ]; then
dest_directory=htmly dest_directory=htmly
echo $"Backing up $source_directory to $dest_directory"
function_check suspend_site function_check suspend_site
suspend_site ${HTMLY_DOMAIN_NAME} suspend_site ${HTMLY_DOMAIN_NAME}
@ -213,8 +211,6 @@ function backup_local_htmly {
function_check restart_site function_check restart_site
restart_site restart_site
echo $"Backup to $dest_directory complete"
fi fi
} }

View File

@ -95,12 +95,8 @@ function backup_local_ipfs {
source_directory=/home/$ADMIN_USERNAME/.ipfs source_directory=/home/$ADMIN_USERNAME/.ipfs
if [ -d $source_directory ]; then if [ -d $source_directory ]; then
dest_directory=ipfs dest_directory=ipfs
echo $"Backing up $source_directory to $dest_directory"
function_check backup_directory_to_usb function_check backup_directory_to_usb
backup_directory_to_usb $source_directory $dest_directory backup_directory_to_usb $source_directory $dest_directory
echo $"Backup to $dest_directory complete"
fi fi
} }

View File

@ -241,13 +241,9 @@ function upgrade_syncthing {
function backup_local_syncthing { function backup_local_syncthing {
if [ -d /var/lib/syncthing/SyncShared ]; then if [ -d /var/lib/syncthing/SyncShared ]; then
echo $"Backing up syncthing"
function_check backup_directory_to_usb function_check backup_directory_to_usb
backup_directory_to_usb /var/lib/syncthing/SyncShared syncthingshared backup_directory_to_usb /var/lib/syncthing/SyncShared syncthingshared
backup_directory_to_usb /root/.config/syncthing syncthingconfig backup_directory_to_usb /root/.config/syncthing syncthingconfig
echo $"Backup to syncthing complete"
fi fi
for d in /home/*/ ; do for d in /home/*/ ; do

View File

@ -128,13 +128,11 @@ function backup_local_tahoelafs {
if [ ! -d $source_directory ]; then if [ ! -d $source_directory ]; then
return return
fi fi
echo $"Backing up Tahoe-LAFS introducer"
systemctl stop tahoelafs systemctl stop tahoelafs
dest_directory=tahoelafs dest_directory=tahoelafs
function_check backup_directory_to_usb function_check backup_directory_to_usb
backup_directory_to_usb $source_directory $dest_directory backup_directory_to_usb $source_directory $dest_directory
systemctl start tahoelafs systemctl start tahoelafs
echo $"Backup to $dest_directory complete"
} }
function restore_local_tahoelafs { function restore_local_tahoelafs {
@ -159,13 +157,11 @@ function backup_remote_tahoelafs {
if [ ! -d $source_directory ]; then if [ ! -d $source_directory ]; then
return return
fi fi
echo $"Backing up Tahoe-LAFS introducer"
systemctl stop tahoelafs systemctl stop tahoelafs
dest_directory=tahoelafs dest_directory=tahoelafs
function_check backup_directory_to_usb function_check backup_directory_to_usb
backup_directory_to_friend $source_directory $dest_directory backup_directory_to_friend $source_directory $dest_directory
systemctl start tahoelafs systemctl start tahoelafs
echo $"Backup to $dest_directory complete"
} }
function restore_remote_tahoelafs { function restore_remote_tahoelafs {

View File

@ -183,12 +183,8 @@ function backup_local_xmpp {
source_directory=/var/lib/prosody xmpp source_directory=/var/lib/prosody xmpp
if [ -d $source_directory ]; then if [ -d $source_directory ]; then
dest_directory=xmpp dest_directory=xmpp
echo $"Backing up $source_directory to $dest_directory"
function_check backup_directory_to_usb function_check backup_directory_to_usb
backup_directory_to_usb $source_directory $dest_directory backup_directory_to_usb $source_directory $dest_directory
echo $"Backup to $dest_directory complete"
fi fi
} }