diff options
author | Aaron Ball <nullspoon@oper.io> | 2018-06-09 23:58:34 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2018-06-09 23:58:34 -0600 |
commit | 4222f3ddc48da5e8fd14f9ed5051706a8ae8812f (patch) | |
tree | cd4d0ce93f6cf9cafa4b7da55898eef9695242ab /andbackup.sh | |
parent | f8e413c0bb0ce7b2305545b1b3fcf1cd9849ed2e (diff) | |
parent | f5ff5902f0859168c41b61958a8aec27e36c892f (diff) | |
download | andbackup-4222f3ddc48da5e8fd14f9ed5051706a8ae8812f.tar.gz andbackup-4222f3ddc48da5e8fd14f9ed5051706a8ae8812f.tar.xz |
Merge remote-tracking branch 'origin/grammar-spelling-bug-update'
Diffstat (limited to 'andbackup.sh')
-rwxr-xr-x | andbackup.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/andbackup.sh b/andbackup.sh index c48a86f..3bcc064 100755 --- a/andbackup.sh +++ b/andbackup.sh @@ -34,7 +34,7 @@ usage() { # If using vim to reflow, execute ':set tw=65' out=" Andbackup is a basic Android application (or package) backup and -restore script. It can backup a single application, or a a list +restore script. It can backup a single application, or a list of applications provided in a text file (one application name per line). It can do the same for application restore. @@ -129,7 +129,7 @@ backup_app() { # Backup the apk file if it exists if [ ! -z "${apk}" ] && [ -f "${apk}" ]; then # Delete the old backup first - # There is a permissions issue querk when the backup was originall taken in + # There is a permissions issue querk when the backup was originally taken in # recovery mode, but later is taken in android (Permission denied for no # apparent reason) [ -f "${backups}/${app}/base.apk" ] && rm -f "${backups}/${app}/base.apk" @@ -159,8 +159,7 @@ backup_app() { fi taropts=" -C ${data} -c " - # Delete cache directory if it exists - # This will sometimes free up significant amounts of space + # Decide if excluding cache or preserving if [[ ! -d "${data}/cache" ]]; then linfo "Cache doesn't exist for ${app}" elif [ "$preserve_cache" -eq 0 ]; then @@ -276,7 +275,7 @@ list_backup_apps() { app="$(echo ${line} | tr -s ' ' | cut -d ' ' -f 1)" # Parse out the arguments (if any) args="$(echo ${line} | tr -s ' ' | cut -s -d ' ' -f 2-)" - # Exceute the backup + # Execute the backup backup_app "${app}" "${args}" done } |