Local backup for hubzilla

This commit is contained in:
Bob Mottram 2016-07-07 11:44:45 +01:00
parent 2e52ff8b8a
commit 7afd0e27a4
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 340 additions and 331 deletions

View File

@ -59,11 +59,20 @@ function upgrade_hubzilla {
} }
function backup_local_hubzilla { function backup_local_hubzilla {
echo '' echo $"Backing up Hubzilla"
function_check backup_database_local
backup_database_local 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"
} }
function backup_remote_hubzilla { function backup_remote_hubzilla {
echo '' echo -n ''
} }
function remove_hubzilla { function remove_hubzilla {