v2.01
Press ENTER to continue.
This commit is contained in:
+16
-3
@@ -413,13 +413,26 @@ send_checkzfs_external() {
|
||||
|
||||
rm -f "$spoolfile"
|
||||
}
|
||||
wait() {
|
||||
echo
|
||||
echo "###########################################"
|
||||
echo "# Das Backup startet in 60 Sekunden... #"
|
||||
echo "# Drücke [Enter], um sofort fortzufahren, #"
|
||||
echo "# oder warte, um automatisch zu starten. #"
|
||||
echo "###########################################"
|
||||
read -t 60 -p "Fortfahren (Enter drücken) oder warten... " input
|
||||
if [[ $? -eq 0 ]]; then
|
||||
log "Press ENTER to continue."
|
||||
else
|
||||
log "No press ENTER, wait for 60 Sec."
|
||||
sleep 60
|
||||
fi
|
||||
}
|
||||
|
||||
# Main execution:
|
||||
if [[ $# -eq 0 ]]; then
|
||||
if [[ -n "$CONFIG_FILE" ]]; then
|
||||
log "Backup-Routine startet in 60 Sekunden..."
|
||||
sleep 60
|
||||
#log "Starting full backup routine..."
|
||||
wait
|
||||
log "Running full backup using configuration file: $CONFIG_FILE"
|
||||
write_zsync_config
|
||||
run_zsync
|
||||
|
||||
Reference in New Issue
Block a user