Backup power supply with led

ledpower supply

My project requires a backup power supply, and I want to include an LED to determine when the backup power supply becomes active. My thought was a voltage divider to limit current to the LED, and allow the excess to bypass the LED and go straight through to the load.Would connecting a BJT as an amplified Zener where the Zener is in fact the LED be relevent?

I am told the correct way to do this would be to utilize a transistor, however I cannot think of a way to connect a transistor where I am not connecting it or an LED to ground(else there will always be current regardless of whether the backup power supply is active), or running the full load current through the gate of a transistor.Would a BJT be better here?

What is the correct way to approach this? I suspect using a transistor would be correct, I have just not been able to create a working circuit with a transistor myself!
schematic

EDIT: More info

When the 12v supply is droped it is disconnected and creates an open circuit.

Best Answer

Use a PNP - -e.g. 2N3906; connect emitter via a 1N4148 (or any other) diode to +9V; connect base via ~ 10k to +12V. Connect the collector via a R (e.g. 10k) suitable for LED brightness to the LED to GND.

When the 12 V falls below 9V-2*0.7, the PNP will will turn on and light the LED.

The 1N4148 is to protect the E-B junction of the PNP if 12 V is present and 9 V not. If you are still concerned, you can add > 1Mohm in parallel with the E-B junction also.