wiki:graylog_backup_and_restore
This is an old revision of the document!
Table of Contents
Graylog backup and restore
Installation of Graylog docker
Dump the mongodb
mongodump --db=graylog --out=/usr/share/graylog/data/graylogmongo.dump
Copy the data folder /usr/share/graylog/data to restore inputs etc.
Restore
mongorestore --drop graylogmongo.dump
Above will drop the tables (collections) if they exist but only those in the backup.
Copy the backed up data back and restart graylog.
Also check the log4j2.xml file to make sure the paths are correct for loggin etc.
Tested on
- Debian 11 Bullseye (vagrant)
- docker_compose_version: v2.2.3
- graylog_version: 4.2-jre11
- mongodb_version: 4.2
See also
References
wiki/graylog_backup_and_restore.1645187740.txt.gz · Last modified: 2022/02/18 12:35 by antisa