qeeqbox/honeypots

How to not drop the db when restarting the project

yybuuin opened this issue · 2 comments

Every time I restart the project, the logs are deleted. Error updating options: pq: database "chameleon" does not exist when db_option = []

image

Hey @yybuuin, sorry for the delay! I'm looking

@yybuuin I pushed a new version 0.50 try this

{
    "logs": "db_postgres",
    "logs_location": "",
    "syslog_address":"",
    "syslog_facility":0,
    "postgres":"//username:password@172.19.0.2:9999/honeypots",
    "sqlite_file":"",
    "db_options":[],
    "sniffer_filter": "",
    "sniffer_interface": "",
    "honeypots": {

This will create a db if not exists, and it will not delete your data unless you add that drop option