es 常用语法
2023-08-15 19:16 qgbo 阅读(14) 评论(0) 编辑 收藏 举报GET _snapshot/backup_20230815
PUT _snapshot/backup_20230816/20230816?wait_for_completion=true
{
"indices": "aa_share_*"
}
PUT _snapshot/backup_20230816?verify=false&pretty
{
"type":"fs",
"indices": "aa_share_*",
"settings":{
"location":"/mnt/backup/backup_20230815",
"max_snapshot_bytes_per_sec":"50mb",
"max_restore_bytes_per_sec":"50mb"
}
}
POST _snapshot/backup_20230816/20230816/_restore
PUT _snapshot/backup_20230815/20230815?wait_for_completion=true
{
"indices": "aa_share_*"
}
本地backup
POST _reindex?refresh&wait_for_completion=false { "source": { "index": "origin-index" }, "dest": { "index": "dest-index_0815_bak" } }
气功波(18037675651)