In this article i will try to list out the steps to move influxdb default directories in windows. After following the steps you will be able to configure influxDB to store its data in a different folder.
1.Create the new influxdb directory.
E:\NewInfluxDatabaseDirectory
1.1 Create the new influxdb configuration.
Open influxdb.conf and save as newinfluxdb.conf
Edit meta, data, wal-dir strings with the corresponding values.
Meta Directory;
[meta]
# Where the metadata/raft database is stored
dir = "E:\\NewInfluxDatabaseDirectory\\meta"
Data Directory:
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "E:\\NewInfluxDatabaseDirectory\\data"
Wal Directory:
# The directory where the TSM storage engine stores WAL files.
wal-dir = "E:\\NewInfluxDatabaseDirectory\\wal"
2.Run influxdb with new database configuration
Go to directory where your influxd.exe is located. Open up command prompt and type the following.
influxd.exe -config newinfluxdb.conf
In another article i am planing to show you how to move databases.
You can also watch the screencast about changing influxdb database directory.