We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c37cd5 commit 9cade20Copy full SHA for 9cade20
1 file changed
static/Updater/backup.sh
@@ -35,7 +35,8 @@ else
35
log_message "Creating backup of user data - $BACKUP_LOCATION"
36
display_msg -t "Backing up user data..."
37
38
- if tar -czvf "$BACKUP_LOCATION" -T backup_list.txt >> "$BACKUP_LOG" 2>&1; then
+ if while IFS= read -r f; do [ -e "$f" ] && echo "$f"; done < backup_list.txt | \
39
+ tar -czvf "$BACKUP_LOCATION" -T - >> "$BACKUP_LOG" 2>&1; then
40
log_message "Updater: successfully backed up files" "$BACKUP_LOG"
41
display_msg -d 1500 -t "Successfully backed up user data"
42
else
0 commit comments