[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.
- [taler-grid5k] branch master updated (37fcfca -> a623f12), gnunet, 2022/04/28
- [taler-grid5k] 05/189: fix shard naming, gnunet, 2022/04/28
- [taler-grid5k] 07/189: fix sharding permissions, gnunet, 2022/04/28
- [taler-grid5k] 06/189: update tables, gnunet, 2022/04/28
- [taler-grid5k] 03/189: fix table naming, gnunet, 2022/04/28
- [taler-grid5k] 37/189: update test sql, gnunet, 2022/04/28
- [taler-grid5k] 18/189: fix typo, gnunet, 2022/04/28
- [taler-grid5k] 44/189: no create table in slow queries, gnunet, 2022/04/28
- [taler-grid5k] 28/189: fixes, gnunet, 2022/04/28
- [taler-grid5k] 53/189: fix, gnunet, 2022/04/28
- [taler-grid5k] 23/189: update persistance script,
gnunet <=
- [taler-grid5k] 41/189: lower slow query duration, gnunet, 2022/04/28
- [taler-grid5k] 33/189: try adding index, gnunet, 2022/04/28
- [taler-grid5k] 34/189: typo, gnunet, 2022/04/28
- [taler-grid5k] 60/189: change cache dir, gnunet, 2022/04/28
- [taler-grid5k] 56/189: try to fix wallet build, gnunet, 2022/04/28
- [taler-grid5k] 71/189: further improve performance of log analysis, gnunet, 2022/04/28
- [taler-grid5k] 01/189: add sharding/partitioning, gnunet, 2022/04/28
- [taler-grid5k] 02/189: fixes, gnunet, 2022/04/28
- [taler-grid5k] 13/189: fix comments, gnunet, 2022/04/28
- [taler-grid5k] 31/189: try with explicit analyze as nested does not work, gnunet, 2022/04/28