The introduction of space division multiplexing in optical networks brings new challenges for network protection since the lightpath can span high capacity and transmit data at different rates. In addition, these networks suffer from the fragmentation of the spectrum that hinders contiguity and continuity constraints and, therefore, increases the block. To address these problems, in this paper, we propose the protection algorithm for elastic optical networks with spatial division multiplexing through multipath routing and shared backup paths.