Skip to content
Snippets Groups Projects

WIP: Resolve "Restore from legacy backup"

Open Michel Memeteau requested to merge 182-restore-from-legacy-backup into master
Compare and Show latest version
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -9,7 +9,7 @@
#- Warning: sshpass package has to be installed.
#-- File where host user's password is stored during script is runnung:
PSWDFILE=".nopaswd"
PSWDFILE=".nopasswd"
#=== Functions ===================================================================#
@@ -73,8 +73,8 @@ function set_app_directories ()
APP_DIRS=( "shop" ) ;
;;
nextcloud)
APP_DIR="" ;
APP_DIRS=( "" ) ;
APP_DIR="/var/www/nextcloud" ;
APP_DIRS=( "apps" "custom_apps" "config" "data" ) ;
;;
esac
}
@@ -114,6 +114,7 @@ function download_archives ()
echo ""
echo "*** Start downloading data archives (be patient)... ***"
sshpass -p `cat $PSWDFILE` scp -P $HOST_PORT ${HOST_USER}@$HOST_NAME:${HOST_USER_DIR}/${APP_NAME}*.tgz .
#TODO : test if transfer was OK
#$SSHNOPASS "rm -f ${HOST_USER_DIR}/${APP_NAME}*.tgz"
echo "*** Archives ${APP_NAME}*.tgz downloaded! ***"
Loading