Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions module/scripts/worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,9 @@ do_path_backup() {
if [ "$ENCDATA" = true ] && ! crypto_available; then finish false ERR_CRYPTO_UNAVAIL; return; fi
use_data_age() { [ "$ENCDATA" = true ] && [ -n "$PW" ]; }
resolve_dest
# Telegram stores one archive per app backup and telegram-pull restores only those, so a
# folder backup there could never come back: refuse it up front, before any work.
[ "$DTYPE" = telegram ] && { finish false ERR_TG_KIND; return; }
transport_guard full || return
prog 2 preparing "path"; audit "path-backup start $SRCP"; notify backup_start "path"
SAFE="$(printf '%s' "$SRCP" | sed -e 's#^/##' -e 's#[^A-Za-z0-9._-]#_#g')"; [ -n "$SAFE" ] || SAFE=path
Expand Down Expand Up @@ -2346,6 +2349,7 @@ do_adb_backup() {
use_data_age() { [ "$ENCDATA" = true ] && [ -n "$PW" ]; }
U=0 # /data/adb is system-wide, not per-user
resolve_dest
[ "$DTYPE" = telegram ] && { finish false ERR_TG_KIND; return; } # app backups only (see do_path_backup)
transport_guard full || return
prog 2 preparing "adb"; audit "adb-backup start"; notify backup_start "adb"
BACKUPS="$(backups_dir "$U")"; BK="$BACKUPS/.adb"; TS="$(date -u +%Y%m%dT%H%M%SZ)"; DEST="$BK/$TS"
Expand Down
1 change: 1 addition & 0 deletions module/webroot/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ window.__I18N_EN = {
"msg_err_dest_id": "The destination name is missing or invalid.",
"msg_err_dest_none": "That destination no longer exists.",
"msg_err_dest_type": "That destination type is not supported.",
"msg_err_tg_kind": "Telegram destinations hold app backups only. Pick another destination for folder and /data/adb backups.",
"msg_err_dest_unreach": "The destination could not be reached.",
"msg_err_drive": "Google Drive could not be reached. Please authorize access and try again.",
"msg_err_drive_consent": "Google Drive is not authorized yet. Please authorize access and try again.",
Expand Down
1 change: 1 addition & 0 deletions module/webroot/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"msg_err_dest_id": "The destination name is missing or invalid.",
"msg_err_dest_none": "That destination no longer exists.",
"msg_err_dest_type": "That destination type is not supported.",
"msg_err_tg_kind": "Telegram destinations hold app backups only. Pick another destination for folder and /data/adb backups.",
"msg_err_dest_unreach": "The destination could not be reached.",
"msg_err_drive": "Google Drive could not be reached. Please authorize access and try again.",
"msg_err_drive_consent": "Google Drive is not authorized yet. Please authorize access and try again.",
Expand Down
Loading