Add Queue when traffic comes from different uplink

How would I go about configuring a queue that only activates when receiving from our backup instead of our main uplink?