How do the configs/FROM_RETROPIE, and TO_RETROPIE Folders (on USB) work?
-
Come on master programmers... This information has to be somewhere....Retropie wasn't programmed to add random from_retropie and to_retropie folders (inside a config folder) for shits and giggles...
-
@Dochartaigh it's not really documentated. Try it out and see what you come up with. Then feel free to edit the wiki with more detail on how it works or look in the code and look up how rsync works .
I don't have time to test but a little trial and error teaches a lot.
Code for reference:
-
That code was added some time ago. I never got around to either testing it well or documenting it.
-
So I can barely write HTML without using all of Adobe Dreamweaver's code shortcuts...but this seems to be the relevant code blocks:
log info "Syncing configs ..." # copy configs to usb for to in "${!path_mapping[@]}"; do from=${path_mapping[$to]} log_cmd rsync -rtu --exclude '._*' --max-delete=-1 "$from/" "$usb_path_from_rp/$to/" done # copy configs from usb for from in $(find "$usb_path_to_rp/" -mindepth 1 -maxdepth 1); do # basename from_bn=${from##*/} to=${path_mapping[$from_bn]} if [[ -n "$to" ]]; then log_cmd rsync -rtu --exclude '._*' --max-delete=-1 "$from/" "$to/" chown -R $user:$user "$to" fi done
So what folders does this automatically sync?
path_mapping
is$rootdir/configs
? And what config directory? There's like 50 of them! ...sorry, this stuff is a foreign language to me. -
@Dochartaigh it should copy anything in usb
configs/to_retropie/configs
to/opt/retropie/configs
-
@BuZz
Cool. So I can safely mirror the /opt/retropie/configs folder directory on the memory stick, then put in all the edited config files in those folders and it'll automatically copy over. That'll save some time at least - thank you!Looks like I'll still have to manually edit the /etc/emulationstation, /boot/config.txt, and my slight shader tweaks (since those folders are outside the /opt/retropie/configs folder) but that's perfectly fine.
-
@Dochartaigh When plugging in a USB stick, it should backup the existing configs in
configs/to_retropie/configs
btw.It's easier and more reliable to just copy stuff over the network though. I don't think I've ever bothered using the usbromservice stuff apart from when developing/testing.
-
I'l have to look on the USB stick I use to house ROMs - barely ever plug it back into my PC unless I change some of the games.
I build so many of these (because it's fun...well sometimes, when things go smoothly ;) and I'm constantly striving for the best performance from these little $5 computers, and I have GRANDIOSE dreams of having a master USB stick I put into any Pi, and it copies over EVERYTHING (ROMs, all scaper data/images, ALL my setting/config files), then just reboot and I have a brand new setup...but I don't think it's there quite yet. ROMS are WAY too big (like 14gb for me - and that's just 16 bit and below and a couple DOSBox games) so I'm still stuck using a USB stick to transfer.
-
@dochartaigh any chance you have that USB configuration? It'd be great to get in touch since I am looking into something similar.
-
@kif Please open a new topic, don't bump old topics.
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.