-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
folder="/media/$USER/PLAYDATE" # <- Put path to Playdate's root here | ||
|
||
if [ ! -d "$folder" ]; then | ||
echo "Please connect your Playdate in data disk mode" | ||
echo "You can do this by going to Settings -> System -> Reboot to Data Disk -> OK on the Playdate" | ||
exit 1 | ||
fi | ||
|
||
printf "Enter date, no spaces please " | ||
read tdate | ||
|
||
printf "Copying saves, this may take a moment\n" | ||
cp -r $folder/Data . | ||
|
||
printf "Copying games, this WILL take a while\n" | ||
cp -r $folder/Games . | ||
|
||
printf "Tarballing Saves and Games\n" | ||
tar cf PDSavesNGames$tdate.tar Data/ Games/ | ||
|
||
printf "Gziping tarball\n" | ||
gzip PDSavesNGames$tdate.tar | ||
|
||
rm -rf Data | ||
rm -rf Games | ||
|
||
printf "Done\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
folder="/run/media/$USER/PLAYDATE" # <- Put path to Playdate's root here | ||
|
||
if [ ! -d "$folder" ]; then | ||
echo "Please connect your Playdate in data disk mode" | ||
echo "You can do this by going to Settings -> System -> Reboot to Data Disk -> OK on the Playdate" | ||
exit 1 | ||
fi | ||
|
||
printf "Enter date, no spaces please " | ||
read tdate | ||
|
||
printf "Copying saves, this may take a moment\n" | ||
cp -r $folder/Data . | ||
|
||
printf "Copying games, this WILL take a while\n" | ||
cp -r $folder/Games . | ||
|
||
printf "Tarballing Saves and Games\n" | ||
tar cf PDSavesNGames$tdate.tar Data/ Games/ | ||
|
||
printf "Gziping tarball\n" | ||
gzip PDSavesNGames$tdate.tar | ||
|
||
rm -rf Data | ||
rm -rf Games | ||
|
||
printf "Done\n" |
File renamed without changes.