Skip to content

Commit

Permalink
removed wildcard from adb push for restoring internal storage, as it …
Browse files Browse the repository at this point in the history
…lead to an error 'failed to copy './backup-tmp/Storage/40217682857069113.jpg' to './backup-tmp/Storage/Android': secure_mkdirs() failed: No such file or directory' for me.
  • Loading branch information
klenze committed Dec 29, 2024
1 parent d570a14 commit d785282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/restore_func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function restore_func() {

# Restore internal storage
cecho "Restoring internal storage."
adb push ./backup-tmp/Storage/* /storage/emulated/0
adb push ./backup-tmp/Storage/ /storage/emulated/0/

# Restore contacts
cecho "Pushing backed up contacts to device."
Expand All @@ -135,4 +135,4 @@ function restore_func() {
remove_backup_tmp

cecho "Data restored!"
}
}

0 comments on commit d785282

Please sign in to comment.