[GH-ISSUE #35] Interactive safety prompt in restore #9

Closed
opened 2026-03-04 19:17:24 +03:00 by kerem · 0 comments
Owner

Originally created by @codesterribly on GitHub (Nov 15, 2025).
Original GitHub issue: https://github.com/007revad/Linux_Plex_Backup/issues/35

Before actually restoring, print a clear summary and ask for confirmation:

echo "About to restore Plex from:"
echo "  Backup: $(basename "$tgz_file")"
echo "  To    : ${Plex_Data_Path}/Plex Media Server"
read -r -p "This will overwrite existing Plex data. Continue? [y/N] " answer
case "${answer,,}" in
    y|yes) ;;
    *) echo "Restore aborted by user." |& tee -a "${Log_File}"; exit 0 ;;
esac
Originally created by @codesterribly on GitHub (Nov 15, 2025). Original GitHub issue: https://github.com/007revad/Linux_Plex_Backup/issues/35 Before actually restoring, print a clear summary and ask for confirmation: ``` echo "About to restore Plex from:" echo " Backup: $(basename "$tgz_file")" echo " To : ${Plex_Data_Path}/Plex Media Server" read -r -p "This will overwrite existing Plex data. Continue? [y/N] " answer case "${answer,,}" in y|yes) ;; *) echo "Restore aborted by user." |& tee -a "${Log_File}"; exit 0 ;; esac ```
kerem closed this issue 2026-03-04 19:17:25 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Linux_Plex_Backup#9
No description provided.