The snapshot request also supports the ignore_unavailable option. Setting it to true will cause indices that do not exist to be ignored during snapshot creation. By default, when ignore_unavailable option is not set and an index is missing the snapshot request will fail.
But they don't really specify what they mean by indices that do not exist, and even though closed indices exist, I'd have thought that they'd fall under the ignore parameter as well. I will see if I can someone to comment on this a bit further.
ignore_unavailable
Controls whether to ignore if any specified indices are unavailable, this includes indices that don’t exist or closed indices. Either true or false can be specified.
I'm inclined to believe it should work on closed as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.