You need to add a second peer on the remote site so if the tunnel with the first peer on the list goes down, the tunnel would be negotiate it against the second IP address.On the main site, you will have to configure the same tunnel on two devices; lets say router (primary) and a Pix (backup). You will have to configure exactly the same tunnel but using routing we will be able to keep only the one going to the router, if the link goes down by any circumstances, a flowing static route would forward the traffic to the Pix so the tunnel can be negotiated.
Ip route [Remote Site?s Subnet] [ISP?s IP address]
Ip route [Remote Site?s Subnet] [Pix?s Internal IP address] 200
The metric 200 will make the route stay on standby state.