From 8acb27cce33e54c6c0e126ad4c93cbaa2fbd92e1 Mon Sep 17 00:00:00 2001 From: Nathan <57642318+nathnp@users.noreply.github.com> Date: Thu, 9 May 2024 19:34:52 -0400 Subject: [PATCH 1/4] Changed defult to zip, moved tar to -t --- src/LinuxM/PDBackup.sh | 17 +++++++++++++---- src/LinuxR/PDBackup.sh | 17 +++++++++++++---- src/mac/PDBackup.sh | 17 +++++++++++++---- 3 files changed, 39 insertions(+), 12 deletions(-) diff --git a/src/LinuxM/PDBackup.sh b/src/LinuxM/PDBackup.sh index adec534..f515d8f 100755 --- a/src/LinuxM/PDBackup.sh +++ b/src/LinuxM/PDBackup.sh @@ -47,11 +47,20 @@ if [ $choice == "b" ]; then fi -printf "Tarballing Saves and Games\n" -tar cf PDBackup$tdate.tar Playdate/ +if [ $1 == "-t" ]; then -printf "Gziping tarball\n" -gzip PDBackup$tdate.tar + printf "Tarballing Saves and Games\n" + tar cf PDBackup$tdate.tar Playdate/ + + printf "Gziping tarball\n" + gzip PDBackup$tdate.tar + +else + + printf "Zipping files\n" + zip -r PDBackup$tdate.zip Playdate/ 2>/dev/null 1>&2 + +fi rm -rf Playdate diff --git a/src/LinuxR/PDBackup.sh b/src/LinuxR/PDBackup.sh index ce63031..af5f3c4 100755 --- a/src/LinuxR/PDBackup.sh +++ b/src/LinuxR/PDBackup.sh @@ -47,11 +47,20 @@ if [ $choice == "b" ]; then fi -printf "Tarballing Saves and Games\n" -tar cf PDBackup$tdate.tar Playdate/ +if [ $1 == "-t" ]; then -printf "Gziping tarball\n" -gzip PDBackup$tdate.tar + printf "Tarballing Saves and Games\n" + tar cf PDBackup$tdate.tar Playdate/ + + printf "Gziping tarball\n" + gzip PDBackup$tdate.tar + +else + + printf "Zipping files\n" + zip -r PDBackup$tdate.zip Playdate/ 2>/dev/null 1>&2 + +fi rm -rf Playdate diff --git a/src/mac/PDBackup.sh b/src/mac/PDBackup.sh index bf4caae..3a63642 100755 --- a/src/mac/PDBackup.sh +++ b/src/mac/PDBackup.sh @@ -47,11 +47,20 @@ if [ $choice == "b" ]; then fi -printf "Tarballing Saves and Games\n" -tar cf PDBackup$tdate.tar Playdate/ +if [ $1 == "-t" ]; then -printf "Gziping tarball\n" -gzip PDBackup$tdate.tar + printf "Tarballing Saves and Games\n" + tar cf PDBackup$tdate.tar Playdate/ + + printf "Gziping tarball\n" + gzip PDBackup$tdate.tar + +else + + printf "Zipping files\n" + zip -r PDBackup$tdate.zip Playdate/ 2>/dev/null 1>&2 + +fi rm -rf Playdate From 270ef16aa8898142782a28dc119a6e5e6e7297d8 Mon Sep 17 00:00:00 2001 From: Nathan <57642318+nathnp@users.noreply.github.com> Date: Thu, 9 May 2024 19:35:30 -0400 Subject: [PATCH 2/4] Changed wording --- src/LinuxM/PDBackup.sh | 2 +- src/LinuxR/PDBackup.sh | 2 +- src/mac/PDBackup.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LinuxM/PDBackup.sh b/src/LinuxM/PDBackup.sh index f515d8f..7aefcad 100755 --- a/src/LinuxM/PDBackup.sh +++ b/src/LinuxM/PDBackup.sh @@ -49,7 +49,7 @@ fi if [ $1 == "-t" ]; then - printf "Tarballing Saves and Games\n" + printf "Tarballing files\n" tar cf PDBackup$tdate.tar Playdate/ printf "Gziping tarball\n" diff --git a/src/LinuxR/PDBackup.sh b/src/LinuxR/PDBackup.sh index af5f3c4..eacee9e 100755 --- a/src/LinuxR/PDBackup.sh +++ b/src/LinuxR/PDBackup.sh @@ -49,7 +49,7 @@ fi if [ $1 == "-t" ]; then - printf "Tarballing Saves and Games\n" + printf "Tarballing files\n" tar cf PDBackup$tdate.tar Playdate/ printf "Gziping tarball\n" diff --git a/src/mac/PDBackup.sh b/src/mac/PDBackup.sh index 3a63642..931e591 100755 --- a/src/mac/PDBackup.sh +++ b/src/mac/PDBackup.sh @@ -49,7 +49,7 @@ fi if [ $1 == "-t" ]; then - printf "Tarballing Saves and Games\n" + printf "Tarballing files\n" tar cf PDBackup$tdate.tar Playdate/ printf "Gziping tarball\n" From 4d4080e47af31a7dd5e87a1a40913d2fe64ff5c4 Mon Sep 17 00:00:00 2001 From: Nathan <57642318+nathnp@users.noreply.github.com> Date: Thu, 9 May 2024 19:36:53 -0400 Subject: [PATCH 3/4] Updated readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8080b32..8d8ca4d 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,9 @@ This tool will back up your games, and save files from your playdate to your com 3. Run the script `./PDBackup.sh` and choose if you want to back up just your saves, or games, or both. +>[!TIP] +> The default output will be a zip file, if you want a tar.gz, run `./PDBackup.sh -t` + ## Scrip is Throwing Error 1. Make sure your Playdate is in Data Disk Mode From f649a22ba84c271ee006f061d08b8363e15dadba Mon Sep 17 00:00:00 2001 From: Nathan <57642318+nathnp@users.noreply.github.com> Date: Thu, 9 May 2024 19:37:19 -0400 Subject: [PATCH 4/4] Fixed wording --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d8ca4d..5d187bb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This tool will back up your games, and save files from your playdate to your com 3. Run the script `./PDBackup.sh` and choose if you want to back up just your saves, or games, or both. >[!TIP] -> The default output will be a zip file, if you want a tar.gz, run `./PDBackup.sh -t` +> The default output is a zip file, if you want a tar.gz, run `./PDBackup.sh -t` ## Scrip is Throwing Error