Improve hubzilla local backup
This commit is contained in:
parent
a17c56f243
commit
28cc306cd8
|
@ -59,8 +59,13 @@ function upgrade_hubzilla {
|
|||
}
|
||||
|
||||
function backup_local_hubzilla {
|
||||
if grep -q "Hubzilla domain" $COMPLETION_FILE; then
|
||||
if [ -d /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs ]; then
|
||||
echo $"Backing up 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
|
||||
|
||||
|
@ -69,6 +74,8 @@ function backup_local_hubzilla {
|
|||
backup_directory_to_usb /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs hubzilla
|
||||
|
||||
echo $"Hubzilla backup complete"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function backup_remote_hubzilla {
|
||||
|
|
Loading…
Reference in New Issue