a few months ago I opened this thread: Graylog backups
but I can’t reply to it anymore as it is now closed.
@macko003 replied on it and gave me a script to back up Graylog, but I have confirmed I only need to backup the configuration (streams, dashboards, extractors…), not the actual logs.
So, just wanted to confirm that what I am planning to do is right.
Backup these files:
I can’t find any “mongodb-keyfile” file in my system, is this normal?
Then do a mongodump of the “graylog” database (only his DB? not the admin, local or or config ones?):
/usr/bin/mongodump -d graylog -o /backup/graylog.mongodump
when I do this, it does not create a file, but a folder with lots of json and bson files in it. Is this what’s supposed to happen?
It was also mentioned to use “a script to make snapshot based on the official solution
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html”. Is this also required if I do NOT want to have a backup of the data, just the configs?