gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 23/189: update persistance script


From: gnunet
Subject: [taler-grid5k] 23/189: update persistance script
Date: Thu, 28 Apr 2022 10:46:33 +0200

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit 49131cd77a133814abae1216403ef730e0c1320d
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Tue Feb 22 16:46:03 2022 +0100

    update persistance script
---
 additional/README.md           |  2 +-
 additional/persist.sh          | 15 +++++++++++++--
 experiment/scripts/database.sh |  4 ++--
 3 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/additional/README.md b/additional/README.md
index e63078e..aa2c423 100644
--- a/additional/README.md
+++ b/additional/README.md
@@ -5,7 +5,7 @@
 Backup Grid'5000 shares which were created by an experiment.
 Contains all logs and the node configuration.
 
-Simply use with `./persist.sh`.
+Simply use with `./persist.sh <BACKUP_NAME> 
<OPTIONAL_PLOT_ARCHIVE_TO_INCLUDE>`.
 
 ## plots
 
diff --git a/additional/persist.sh b/additional/persist.sh
index a510253..2af7156 100755
--- a/additional/persist.sh
+++ b/additional/persist.sh
@@ -18,8 +18,19 @@ Make sure that:
 if [ -z ${1} ]; then
   echo "Missing experiment name"
   exit 1
-elif [ -z ${2} ]; then
+fi
+if [ -z ${2} ]; then
   echo "No plots will be included"
+else
+  echo "The file '${2}' will be deleted when this script finishes, do you want 
to contiue?" 
+  while true; do
+    read -n 1 -s yn
+    case $yn in
+      [Yy]*) break 2;;
+      [Nn]*) exit ;;
+      *) echo "Please enter 'y' or 'n'" ;;
+    esac
+  done
 fi
 
 if [[ $(ssh-add -L | wc -l) == "0" ]]; then
@@ -47,5 +58,5 @@ echo "Creating Backup Tar ${BACKUP_NAME}"
 
 tar -czvf ${BACKUP_NAME} ${G5K_BACKUP} ${2}
 
-rm ${G5K_BACKUP}
+rm ${G5K_BACKUP} ${2}
 
diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh
index 2b2fbd6..1f39c5c 100755
--- a/experiment/scripts/database.sh
+++ b/experiment/scripts/database.sh
@@ -248,8 +248,8 @@ EOF
 case ${1} in 
   init)
     setup_config
-    setup_disks
-    # setup_ram_storage
+    # setup_disks
+    setup_ram_storage
     init_db
     setup_pgbouncer
     restart_rsyslog

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]