Optimal Resource Allocation for Disaster Recovery