Backup & Restore bash script with option to syncronize on google drive account
-
Hello everyone, I leave here a pdf with some instructions to install a script in Retropie in order to be able to make backups of your saved games of much of the systems included in RetroPie, as well as after being able to restore them, and with the possibility also to upload them to a google drive account. They can also be deleted, it is in several languages, etc., etc. An interesting option is, for example, if you have several raspberries running backward, backing up in one of them, uploading it to the cloud, and restoring it in another that also has a rearfoot. The only thing that should be done is to install the client drive on both raspberries and make sure that the paths where the saved game files are stored match on each device
The script was made by one of the members of the Spanish telegram group (https://t.me/RetroStoneES) in order to use the retrostone portable console, which works with RetrOrangePi, but which is fully compatible with RetroPie.
It is open source, so whoever wants to can modify, distribute, etc., but not profit from it.
The instructions are in Spanish, so feel free to translate them into another language and share them too.
EDITED (2019-08-23): Now the instructions are in english too.
It seems I can't upload the pdf file on this forum, so I'll include the script link where you can find it:
https://gitlab.gameboyzero.es/qu1que/script_back_res
I hope you enjoy it and take advantage of it.
-
@qu1que said in Backup & Restore bash script with option to syncronize on google drive account (SPANISH):
e, so whoever wants to can modify, distribute, etc., but not profit from it.
Could you share the script in other ways, the forum is Portugese or Spanish and requires registration. Thx and Cheers!
-
Sorry for the inconvenience, I have to chat with gitlab admin, because I don't know why, last week I could make this with no authentication request:
git clone https://gitlab.gameboyzero.es/qu1que/script_back_res
and all files get cloning on my computer. Now it says I have to authenticate.
Stay tunned on this thread for when I solve it.
-
@qu1que Are the any advantages over Setup script to sync saves with cloud services from @jandalf81?
-
I did not know the script you mention, so I can't answer what you ask, sorry.
In our script you can configure the paths where stored games are stored, both of the systems included in / home / pi / RetroPie / roms, and some others that use other routes (Amiberry, PPSSPP, NDS, mupenplus64, dreamcast, etc)
You can choose the type of backup / restore, so that it synchronizes the tar.gz files (containing the saved games of the different systems) partially or totally (the difference is that in one case it will eliminate what we have in our device to synchronize with the content in the cloud (total), and in the other case it will not eliminate anything (partial)). This in case we want to upload it to the cloud, otherwise it will simply store it on the device.
There is also the option to delete those files from saved games, delete the * .tar.gz files, or delete both.
You can choose the routes of the saved games, either from an external file, or from the script menu itself, as well as the extensions of the files we want to backup.
Several languages are included to choose from. They are translated by some volunteers, others using automatic translators.
And I don't remember if anything else ...
-
@qu1que I've to look into the sourcode but I remeber that the script was very clever coded. You can take a look at IMGUR photo series
I think if you get the script code of yours we can discuss about it ;) -
Well, first of all, I have not written the script, my knowledge in bash script is very basic. It has been written by another person, a member of the telegram group that I mentioned in the first post. I don't know if he expresses himself fluently in English, but I can invite him to enter this forum and discuss it with him.
Another question, I don't know how to get you the script code, since as I said before, you can't make a git clone due to some problem in the gitlab that I will solve in the next few days.
I have uploaded it to google drive, and I share the link for you to take a look:
https://drive.google.com/open?id=10__bEhsIS6ywiNm-Jwu6o9EPRnbUOqUk
@mth75 I think this interests you too.
I have also seen that the @jandalf81 script is very elegant. In that aspect, ours may not be so colorful, it is simply a dialog menu with several options
regards -
@qu1que I took a swift code in your script. It's very good commented and there is a good chance in translation but I'm on vacation and have no linux mashine. So I can't test.... but hell 4000+ lines of code. One thing: I did not saw that the script sources the joy2key code. So how do you reassign the gamepad button codes?
-
We did not include the joy2key source code in main script. We've made it in another script to be launched from Emulation Station. Now I've included to the google drive link the other script. Take a look to the BACKUP_RESTORE.sh file
-
@qu1que said in Backup & Restore bash script with option to syncronize on google drive account (SPANISH):
it to google drive, and I share the link for you to take a look:
Thx mate!
-
Now it's solved the problem with gitlab. Anyone can do a git clone to the repository:
git clone https://gitlab.gameboyzero.es/qu1que/script_back_res
-
Next days I'll translate to english the pdf with the instructions of the script, and included the file on gitlab too.
EDITED (2019-08-23): Now instructions are translated to english.
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.