New folder migration of an InfluxDB3 Enterprise DB

Under Windows 10, I need to change the folder of an InfluxDB3 Enterprise database. Is there any best practice for doing this?

I tried simply copying the whole data and subdirectories in the new folder and changing the directory in the configuration, but I ran into these problems:

  1. A large number of files were not recognized because of permission changes. I tried to update all permissions at once, but it did not work. Since the database contains around 70 GB of data and hundreds of thousands of files, I also tried some scripts, but after hours of scanning they were still far from finishing.
  2. The license is not recognized because it seems to be linked to the directory. I requested a new license for home use several times, but it was never sent to the email address provided. I tried at least five times.

Do you have any suggestions?

Federico

One trick with Windows is that if you just copy data (or use something like File Explorer to move it), the OS does not copy all metadata, file permissions, etc., which likely causes the issues you’re running into. If you use the robocopy command to transfer the data, it will “robustly” copy everything, so doing that and updating the --data-dir flag should be all you need to be off and running.

If you want to duplicate the data into a new InfluxDB instance, you’ll just need to spend some time messing around with Windows permissions, or export the data and re-import it. If that’s what you want to do and you’re able to get things operational (or robocopy doesn’t work), let me know, and I’ll reach out to make sure we get your license refreshed.