Skip to content

Commit

Permalink
Merge pull request #1 from nathnp/Dev
Browse files Browse the repository at this point in the history
Pull dev to main
  • Loading branch information
nathnp authored May 9, 2024
2 parents a267a86 + f649a22 commit 7d82300
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 12 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 is 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
Expand Down
17 changes: 13 additions & 4 deletions src/LinuxM/PDBackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 files\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

Expand Down
17 changes: 13 additions & 4 deletions src/LinuxR/PDBackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 files\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

Expand Down
17 changes: 13 additions & 4 deletions src/mac/PDBackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 files\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

Expand Down

0 comments on commit 7d82300

Please sign in to comment.