S3类型

    1. #PUT _snapshot/myes
    2. {
    3. "type": "s3",
    4. "settings": {
    5. "endpoint": "s3.sh1a.XXXX.com",
    6. "access_key": "XXXXX",
    7. "secret_key": "XXXXX",
    8. "bucket": "es-snapshot",
    9. "base_path": "myes"
    10. }
    11. }

    网络共享存储(NFS)类型
    注:需要先把这个网络存储在所有节点上挂载上,挂载在同一个路径下

    1. #PUT _snapshot/myes
    2. {
    3. "type": "fs",
    4. "settings": {
    5. "location": "/es_snapshots/myes",
    6. "compress": true,
    7. "chunk_size": "50m",
    8. "max_snapshot_bytes_per_sec": "200mb"
    9. }
    10. }