Backup SD Card by copying out files?
-
Very wise. I've thought about doing the same.
-
@mediamogul i actually backup files as i add/change stuff. Then i do a backup of all my selected files and folders everytime i do a retropie update. I have about 10-15 major backups.
-
Wow. If luck favors the prepared, I should be asking you for lottery numbers.
-
@mediamogul I just deleted my 2.6 backup a couple months ago. Still have all my updates after that
-
For backing up without doing a full image backup, I'd recommend looking up the rpi-clone script, provided you can plug the destination card via USB to your Pi.
-
@pjft Thanks for the info, i looked into that but it looks like i would have to have another 128gb SD card to make that work. I have a good base image for my system already saved on my computer, so my thought is that I can just copy off the folders with updates like @mediamogul has provided and then dump those back into the build once I reinstall my base image on the SD Card.
@mediamogul, i am a little green when it comes to installing scripts, i was just going to run it from putty, but i like the idea of having the script right on the retropie menu. Forgive me for this beginner question, but do i just save the script code you posted in a .xml and then save that file to /home/pi/RetroPie/retropiemenu? That seems to easy.......Thanks
-
but do i just save the script code you posted in a .xml and then save that file to /home/pi/RetroPie/retropiemenu? That seems to easy.......Thanks
It's just about that easy. Save it with the extension
.sh
and then run:chmod +x /home/pi/RetroPie/retropiemenu/name-of-script.sh
After that it should be good to go.
-
@mediamogul Awesome, you are the best and made my day!
-
@TMNTturtlguy you'd need a second card, but not the same size (unless your ROMS are there). But yeah, the other folders are the key ones.
-
@pjft unfortunately my roms are on my SD card. I started my builds before i joined this community and read all the documents and made my first build on a 128GB and it worked great, so I made an image and started make base copies for each of my additional builds (stand up arcade machines as well as a plug and play TV setup). All of my roms are set up with the correct emulators and have game cores set and they are all scraped to the location on the SD Card. I would love to simply move the roms off the card so if and when the SD card corrupts I don't have to replace it with a 128gb, but I believe that would take a lot of effort? Right now i have all my builds with the same base so I hope this will allow me to create a backup of the mods i make for each setup. Reinstall the base image and overwrite the folders in the base with the USB backup. Downside is i have to replace a 128 SD card instead of an 8 gb card.
-
I would love to simply move the roms off the card so if and when the SD card corrupts I don't have to replace it with a 128gb, but I believe that would take a lot of effort?
There's a very easy way to move the entire RetroPie folder externally that was introduced a few month's back.
-
@mediamogul would i need to repath all of my gamelists?
-
No, the beauty part is that because the new location is mounted over the old, the entire system never knows there was a change.
-
@mediamogul WOW - that is awesome....ok, so now a few more question as I am trying to compute all of this info - Thanks again as i am learning a lot today!
-
I am currently running 128gb cards, lets say i get 128 gb usb stick and copy over the roms. Now i am left with a 128gb card running with no roms on it. Could I use your script to copy over the important files, move the roms over, get a new 8gb card and throw a clean retropie image onto it, copy the folders i pulled off onto the clean image on the 8gb card and continue to run as if nothing changed? I guess to simplify, can i copy the roms and folders and build an 8gb card that will run identical to my current 128 SD card build?
-
The instructions have you turn on the USB transfer service, they don't say to turn it off after the transfer? Do you just leave it on at all times?
-
after i transfer the roms and it is mounted, can i then take the USB out and plug it back into my windows computer to add roms, or is it best to still add roms over WinSCP?
-
-
@TMNTturtlguy I can't answer for others, but you can certainly use rpi-clone to, after copying the ROMS to the SD card and removing them from the SD card, create an exact copy on a smaller SD card and run it from there. I can tell you how to do that as well.
And yes to number 3, that's how I sometimes do it as well. Works like a charm. Obviously I still backup the ROMS as well every now and then :)
I don't know about number 2 as I don't use the service myself but rather mount it using the old method.
-
@pjft Thanks for the response. I like the plan of copying off the roms and then deleting them and transferring the data onto a smaller SD card with the rpi-clone tool. Does the clone tool make the smaller sd card bootable as well? I did find a version on github, not sure if it is the same tool you are speaking of. If you have time, any directions or link would be appreciated. If not, I will be resourceful and dig into some reading! I really appreciate all the help and responses, i think this will really improve my setups.
I am going to run to the local computer store and buy a few SD and USB sticks. Do you think an 8gb sd is the right size? All of the games will be on the SD card, i suppose scraped art that is in home/pi/.emulationstation will remain on the SD Card? Edit: looks like a 16gb class 10 card is only $1.00 more for me, so i might as well just get those.
As for #2 - after reading the manual instructions, the manual instructions say not to use the automatic transfer, so i assume that once the transfer is complete I will want to turn that service off so it doesn't try to transfer every time.
-
I must have missed your last post.
(1) Yes, all of that would work.
(2) Yes, you would leave it on. I believe it triggers an action that would set everything back when deactivated.
(3) Yes again. At that point you could just plug the external drive into your computer to transfer ROMs.
Edit:
so i assume that once the transfer is complete I will want to turn that service off so it doesn't try to transfer every time.
It doesn't transfer every time.
-
@mediamogul Thanks! Off to pick up some parts and give this try!
-
Good luck. It sounds like either method will get you where you want to be.
-
@mediamogul @pjft this could take awhile! I have about 90 gigs to transfer, it has been running for 10 minutes and we are up to 1gb transferred! I am doing this for 2 builds, do you know if i can simply copy the files from one usb stick to another over my PC? or does the script do something to format the usb stick when it is first inserted? I noted that when looking at the retropie manager that the mount is named /media/usb0 - that is making me wonder if I have to do this process twice instead of a simply copy?
Also, I noticed that the link for formatting USB drives for Windows does not provide proper information for formatting USB drives larger than 32GB. Windows will not allow you to format drives larger than 32GB as fat32. Luckily the drives I purchased where already formatted fat32, but the docs might want to get updated? Thanks again
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.