List of game save file extensions?
-
".EEP" for N64
".SRM" for SNES and too GBAHmm, the idea it´s pretty good, maybe to save the highscores from Arcade too?
-
High scores would be cool. My RetroPie doesn't have MAME installed, but I have NeoGeo. I have no idea what files would contain that data for either though, unless like stated by dankcushions, maybe the .HS files?
-
@lordcrammy i use lr-fbalpha and it looks like it keeps .fs files for neogeo saves.
-
i put RetroPie on another SD card so i could experiment with it without ruining what I have on my other SD. i tried doing what I listed at the top of this thread. I received a few errors.
First:
cp: failed to access /media/4GB/: no such file or directory
(4GB was the name I gave the USB stick)
Then I got the next 2 lines:
Module /home/pi/RetroPie-Setup/scriptmodules/supplementary/gamesave-backup.sh is missing valid rp_module_id
Module /home/pi/RetroPie-Setup/scriptmodules/supplementary/gamesave-backup.sh is missing valid rp_module_desc
Any idea which file contains the spots I'd have to give it the ID and Description? I think I might have fixed the USB location issue by mounting the SDA1 to /media/usb, but I still need to correct the last 2 errors.
-
I have temporarily given up on creating a menu selection to do a backup of the save files. Instead, I've copied an SH file to the /home/pi directory called "backup.sh". I will just show them how to plug in a USB keyboard, hit F4, then run the command to start the script after plugging a USB stick in. So basically:
sudo sh /home/pi/backup.sh
The contents of the SH file are as follows:
#!/bin/bash sudo mount /dev/sda1 /media/usb0 find . -name "*.srm" -o -name "*.state" -o -name "*.dat" -o -name "*.nv" -o -name "*.hi" -o -name "*.hs" -o -name "*.cfg" -o -name "*.fs" -o -name "*.eep" -print0 | sudo xargs -0 cp --parents -t /media/usb0/ sudo umount /media/usb0
I know it's very long, but I don't know how to condense the extensions into one easier command, I'm very new to Linux. The backup does work though, I tried it myself, everything gets copied over into the same tree structure as on the Pie. The "-print0" entry before the pipe and the "-0" after "xargs" had to be put in to list the files before copying them because most of the ROMs have spaces in the names, and if you don't put it there, you get a bunch of STAT errors where the command breaks down each word in the ROM name as a file and it fails.
The only thing I have to mention is that I had to do:
sudo chmod 777 /media/usb0
before running the script (but after plugging in the USB stick) or you get write permission errors.
If anyone else has any input, it would be appreciated. Or if you know of any other save file extensions. Otherwise, I may mark this as solved in the next few days.
-
@lordcrammy
Great script!I'm not at my Pi to test this but you might back able to add this to the EmulationStation Ports menu like this:
nano /home/pi/RetroPie/roms/ports/Backup\ Savegame\ Files.sh
Or some name that makes since and then put your same script in there!And, yes, make sure it's executable:
chmod +x /home/pi/RetroPie/roms/ports/Backup\ Savegame\ Files.sh
So under the Ports menu it should have "Backup Savegame Files" or whatever you called it.
Also for the .sh using777
would work but it would be more secure if you used755
instead but this shouldn't matter on the Pi lol
I personally like to just do the+x
which just makes it executable to everyone and keeping everything else the same.
For the /media/usb0 it might be better to use the777
-
@backstander Hey that's a good idea actually. I'll give it a try in the next few days, work has me busy these next few evenings. I'll let you know how it works for me.
Also, yes i know 777 isn't the best choice for most things, but this is just the USB stick, so i don't really mind having full rights to it.
-
If you guys are interested I made a tool to backup saves to Dropbox. You can check it out here: http://www.freakybigfoot.com/pisave.php
-
I also find it's nearly as easy to simply have all your save games go into 1 consolidated directory. Takes me about 10 seconds to SSH into my Pi with an FTP client and drag that file over for backup.
-
Oh for sure! This is just nice to be able to hit a button and let it do it's thing. It will be the same to restore soon.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.