diff options
-rwxr-xr-x | andbackup.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/andbackup.sh b/andbackup.sh index 2093832..9bb3326 100755 --- a/andbackup.sh +++ b/andbackup.sh @@ -67,8 +67,7 @@ function backup_app { # Compress the backup echo "Compressing userdata for ${app}" cd ${backups}/${app}/ - tar -cf data.tar data - bzip2 -f data.tar + tar -c data | gzip -c > data.tar.gz rm -rf data } @@ -117,7 +116,7 @@ function restore_app { # Decompress backup echo "Decompressing user data for ${app}." cd ${backups}/${app}/ - bunzip2 -c data.tar.bz2 | tar -x + gzip -d -c data.tar.gz | tar -x # Copy the user data in cp -rp ${backups}/${app}/data/* ${data}/ |