Backup SD card to Hdd with Rp-Wd03

Hi. I have recently installed Openwrt on an Rp-wd03.
I wanted to know how it is possible to backup a sd card to an external storage device.
Is it also possible to automate the backup of the sd card when inserted in?

I had never seen this device before. It looks interesting.

From what I understand, there are only two connection options for it. The sd card slot, and ethernet. From what I've read, the USB port is only for charging. If that is correct, then you are going to need some sort of network storage to store the backed-up sd card on.

Do you have a NAS or samba server or similar on your network?

It is a device that has an SD card reader, a USB port, a LAN port, and a micro USB port (only for charging). This device allows you to backup an SD card to an external memory device (very useful in photography for a backup on the go). It can also be used as a Samba and DLNA server, as well as a small Wi-Fi router or powerbank.

I have recently installed OpenWrt and would like to understand how to restore the ability to back up the SD card to an external memory device. It would be even better to automate the backup process upon inserting the SD card.

Ok, good. The review I read made it look like that USB port was only to charge other devices with.

There is no baked-in functionality in OpenWrt to do something like that. That device is a fairly specialized little unit and its original firmware has functionality that OpenWrt doesn't have.

I'm pretty sure we could come up with some scripts so that when you plug in an SD card it will back it up, either by file or as an image, to a USB storage device.

If I configured it as a samba server, could I copy and paste files from the sd card to the external memory?

Absolutely. Very doable.

If you want auto-backup, you could craft a script that uses logread to watch the log and filter for SD card insertions, so that when it sees one it starts the backup.

On github I found a script that might help me to back up the sd card to a memory device.
However, I am not familiar with openwrt.
How can I install a script published on github with the terminal?