|
@@ -249,26 +249,6 @@ function backup_directories {
|
249
|
249
|
done
|
250
|
250
|
}
|
251
|
251
|
|
252
|
|
-function backup_apps {
|
253
|
|
- FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
|
254
|
|
-
|
255
|
|
- APPS_COMPLETED=()
|
256
|
|
-
|
257
|
|
- # for all the app scripts
|
258
|
|
- for filename in $FILES
|
259
|
|
- do
|
260
|
|
- app_name=$(echo "${filename}" | awk -F '-app-' '{print $2}')
|
261
|
|
- if [[ $(item_in_array ${app_name} ${APPS_COMPLETED[@]}) != 0 ]]; then
|
262
|
|
- function_check app_is_installed
|
263
|
|
- if [[ "$(app_is_installed $a)" == "1" ]]; then
|
264
|
|
- APPS_COMPLETED+=("${app_name}")
|
265
|
|
- function_check backup_local_${app_name}
|
266
|
|
- backup_local_${app_name}
|
267
|
|
- fi
|
268
|
|
- fi
|
269
|
|
- done
|
270
|
|
-}
|
271
|
|
-
|
272
|
252
|
function remove_backup_directory {
|
273
|
253
|
if [ $1 ]; then
|
274
|
254
|
if [[ $1 == "remove" ]]; then
|
|
@@ -420,7 +400,7 @@ check_storage_space_remaining
|
420
|
400
|
backup_users
|
421
|
401
|
prepare_directories
|
422
|
402
|
backup_directories
|
423
|
|
-backup_apps
|
|
403
|
+backup_apps local
|
424
|
404
|
backup_configuration
|
425
|
405
|
backup_admin_readme
|
426
|
406
|
backup_mariadb
|