很有用

78 阅读1分钟

curl -XPUT "http://localhost:9200/_snapshot/backup" -H 'Content-Type: application/json' -d' { "type": "fs", "settings": { "location": "/dev/es", "compress": true, "max_snapshot_bytes_per_sec": "100mb", "max_restore_bytes_per_sec": "100mb" } }'

curl -XPUT "http://localhost:9200/_snapshot/backup/balance_2022?wait_for_completion=true" -H 'Content-Type: application/json' -d' { "indices":"balance", "ignore_unavailable": "true", "include_global_state": false }'