forked from p15670423/monkey
1.1 KiB
1.1 KiB
title | date | draft | pre | weight |
---|---|---|---|---|
Data directory | 2021-05-18T08:49:59+03:00 | false | <i class="fas fa-folder"></i> | 9 |
What is the data directory?
The data directory is where the Island server stores runtime artifacts. These include the Island logs, any custom post-breach action files, configuration files, etc.
Where is it located?
On Linux, the default path is $HOME/.monkey_island
.
On Windows, the default path is %AppData%\monkey_island
.
How do I configure the location of the data directory on Linux?
The location of the data directory is set in the data_dir
field in the
server_config.json
file.
-
Create a custom server_config.json file and set the
data_dir
field. Its contents will look like this:{ "log_level": "DEBUG", "environment": { "server_config": "password" }, "mongodb": { "start_mongodb": true }, "data_dir": "<PATH_TO_DATA_DIR>" }
-
Start the Infection Monkey with the
--server-config
parameter.$ InfectionMonkey-VERSION.AppImage --server-config <PATH_TO_SERVER_CONFIG>