diff --git a/borg2-mount-archiv.sh b/borg2-mount-archiv.sh index b59ae9c..4b633aa 100755 --- a/borg2-mount-archiv.sh +++ b/borg2-mount-archiv.sh @@ -274,20 +274,6 @@ export BORG_RELOCATED_REPO_ACCESS_IS_OK blank_line -LIST_OF_FILES_OR_DIRECTORIES= -echo -e "\033[32m--\033[m" -echo "" -echo "Specify a space-separated list of files or directories to be part of the mounted filesystem." -echo "" -echo -e " Type \"\033[33mall\033[m\" or leave emty to mount the full archive" -echo "" -echononl "List of files or directories: " -read LIST_OF_FILES_OR_DIRECTORIES -if [[ "X${LIST_OF_FILES_OR_DIRECTORIES}" = "X" ]] || [[ "$(trim ${LIST_OF_FILES_OR_DIRECTORIES,,})" = 'all' ]] ; then - LIST_OF_FILES_OR_DIRECTORIES="" -fi - -blank_line echo -e "\033[32m--\033[m" echo "" @@ -312,6 +298,27 @@ echo -e " \033[33m--------------------------------------------\033[m" echo "" +LIST_OF_FILES_OR_DIRECTORIES= +echo -e "\033[32m--\033[m" +echo "" +echo "Specify a space-separated list of files or directories to be part of the mounted filesystem." +echo "" +echo -e " Type \"\033[33mall\033[m\" or leave emty to mount the full archive" +echo "" +echo " Notice:" +echo -e " Database backups are stored in the \033[1m/data/backup/sql/\033[m directory" +echo -e " Database backups are named in the format \033[1m--.sql\033[m" +echo "" +echo " Example:" +echo -e " /var/www/html/projekte/ejh-bochum /data/backup/sql/ejh_bochum-mysql-${BORG_BACKUP_ID}.sql" +echo -e " /var/www/html/projekte /data/backup/sql" +echo "" +echononl "List of files or directories: " +read LIST_OF_FILES_OR_DIRECTORIES +if [[ "X${LIST_OF_FILES_OR_DIRECTORIES}" = "X" ]] || [[ "$(trim ${LIST_OF_FILES_OR_DIRECTORIES,,})" = 'all' ]] ; then + LIST_OF_FILES_OR_DIRECTORIES="" +fi + blank_line @@ -491,6 +498,9 @@ blank_line info "You can find the readonly mounted files from repository archive '${BORG_BACKUP_ID}' at directory: - \033[1m${BORG_FUSE_MOUNT_DIR}/${BORG_BACKUP_ID}\033[m" + \033[1m${BORG_FUSE_MOUNT_DIR}/${BORG_BACKUP_ID}\033[m + + The resources don't start loading until they are accessed for the first time + \e[1;33mLoading the desired resources may take a while.\e[0m" clean_up 0