Press ENTER to continue.
This commit is contained in:
2025-07-26 02:01:58 +02:00
parent a15a7bad54
commit 7d3e53b42a
+16 -3
View File
@@ -413,13 +413,26 @@ send_checkzfs_external() {
rm -f "$spoolfile" 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: # Main execution:
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
if [[ -n "$CONFIG_FILE" ]]; then if [[ -n "$CONFIG_FILE" ]]; then
log "Backup-Routine startet in 60 Sekunden..." wait
sleep 60
#log "Starting full backup routine..."
log "Running full backup using configuration file: $CONFIG_FILE" log "Running full backup using configuration file: $CONFIG_FILE"
write_zsync_config write_zsync_config
run_zsync run_zsync