Sure.
You want to look at udev rules. You could create a rule that runs a script once you insert your sd card.
The script could then burn the DVD.
You need to put a sript into /etc/udev/rules.d/ and give it a name that starts with a low number and ends with .rules. E.g. 10-autoburn_sd.rules.
It should contain something like
Code:
ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", RUN+="/usr/local/bin/burn_sd.sh"
Instead of 1234 you have to put the vendor id of your sd card and instead of 5678 the product id. Both of which you can find out by running
You should get something like
Code:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 13d3:5071 IMC Networks
Bus 004 Device 003: ID 1241:1111 Belkin Mouse
Bus 001 Device 004: ID 058f:6335 Alcor Micro Corp. SD/MMC Card Reader
Where the last line would be the sd card. So instead of 1234 you'd put 058f and instead of 5678 you'd put 6335
Then the script /usr/local/bin/burn_sd.sh should look similar to this:
Code:
#!/bin/bash
BURNDIR=/path/to/sdcard
genisoimage -r $BURNDIR | wodim -v speed=16 dev=/dev/sr0 -
Depending on your system you may also have to include a line at the beginning that actually mounts the sdcard.
Replace the /path/to/sdcard with the right path.
And last not least for the script to run make sure it is executable and that you have the packages genisoimage and wodim installed.
All of this untested so I am sure it'll need a little tweaking (Make sure the sdcard is actually mounted, handle situations like no dvd in drive, etc...), but I guess you get the picture.
Also I am not exactly sure what you mean by differential copy.