Backup and restore in graylog2.4.3

With these scripts that I got from google. How can I backup and restore graylog.I have the free version of graylog.

Any help would be appreciated.

backup script -
TODAY=date +%m-%d-%y
curl -XPUT “graylog1-mgmt.philasd.net:9200/snapshot/snapshot_backup/snapshot${TODAY}?wait_for_completion=true”

restore script -
curl -XPOST http://graylog1-mgmt.philasd.net:9200/snapshot/snapshot_backup/snapshot$1/restore?pretty -H ‘Content-Type: application/json’ -d’
{
“indices”: “index_0,index_1,index_2,index_3,index_4,index_5,index_6,index_7,index_8,index_9,index_10”,
“ignore_unavailable”: true,
“include_global_state”: true,
“rename_pattern”: "index
(.+)",
“rename_replacement”: “restored_index_$1”
}

restore executed -
[root@graylog1 scripts]# ./restore-repo.sh 04-01-18
{
“error” : {
“root_cause” : [
{
“type” : “snapshot_restore_exception”,
“reason” : “[snapshot_backup:snapshot_04-01-18] snapshot does not exist”
}
],
“type” : “snapshot_restore_exception”,
“reason” : “[snapshot_backup:snapshot_04-01-18] snapshot does not exist”
},
“status” : 500
}

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.