summaryrefslogtreecommitdiff
path: root/kvm_tools/kvm_live_backup.sh
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-16 10:41:56 +0200
committerMiguel <m.i@gmx.at>2018-10-16 10:41:56 +0200
commitf1fa025404314863878546405edea0e18ff9151a (patch)
treeabb750dba9633b99912c6719f92f5ac8980bdc70 /kvm_tools/kvm_live_backup.sh
parent8eb5d639b995e85b4c69e0f77ff85064b0a50ace (diff)
adding extra user warnings before startup!
Diffstat (limited to 'kvm_tools/kvm_live_backup.sh')
-rwxr-xr-xkvm_tools/kvm_live_backup.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/kvm_tools/kvm_live_backup.sh b/kvm_tools/kvm_live_backup.sh
index ddd3df7..3e63a14 100755
--- a/kvm_tools/kvm_live_backup.sh
+++ b/kvm_tools/kvm_live_backup.sh
@@ -5,7 +5,6 @@
# A FOOLISH KVM BACKUP SCRIPT
# hacked together by Miguel<m.i@gmx.at> around mid February 2018
#
-# DO NOT FORGET TO SYNC & FSTRIM YOUR DISK BEFORE RUNNING THIS SHIT
# untar also needs -S !!!
#
# TODO: ADD TIMING INFO ?
@@ -13,15 +12,12 @@
# TODO: do not make so many assumptions about file names and locations :(
# This script should/could be much more universal!
# Do some BASIC error checking
-# An RESTORE script would be very helpfull as well
#
-# TODO!: check if we run inside tmux
-# ask if fstrim performed
-# check/ask for sudo
+# TODO!:
# config external backup space
# show config and ask if ok
# override --all-yes with param
-# use dash instead bash
+# use dash instead bash?
# dry run
#
#####################################################################
@@ -33,7 +29,9 @@ set -e
echo ""
echo " 1) Are you running inside a tmux/screen?"
-echo " 2) Did you remember to perform sync & fstrim?"
+echo " 2) Did you cleanup the backuped system (pruning unused stuff)?"
+echo " 3) Did you remember to perform sync & fstrim?"
+echo " 4) Are you aware this script runs many commands with sudo?"
echo ""
echo " Please type 'YES' if you want to continue."
echo ""