Moode Forum
Using Script with Restore - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Using Script with Restore (/showthread.php?tid=5643)



Using Script with Restore - Macdelf - 06-20-2023

Moode is a most wonderful piece of software. In addition I have some of my own enhancements (custom radio, IR files, play indicators, and an audio recorder). Because the team keeps it up to date I routinely run a script to invoke these things upon each update.  I know that the script can be added to the backup, but mine first requires the download of multiple files from my PC prior to running the script. What I do now is flash an sd card, boot the pi, install backup from the old version, use SCP to dump some files onto the pi, and finally run a script with SSH. 
If I could somehow get those files onto the pi prior to first boot, I could use the script function of restore. Is there a way?
Tom


RE: Using Script with Restore - Tim Curtis - 06-20-2023

Put the uSD card in a USB adapter like the one at the link below
https://www.amazon.com/gp/product/B06XTQZS4F/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

Then insert it into another moOde Pi and copy your files to

Code:
/media/rootfs/home/pi

Or some other location.


RE: Using Script with Restore - Macdelf - 06-20-2023

Thank you. The location on the un booted sd card is what I needed.