Hi there, I would like to get some help on migrating my project’s data. I have recently set up InfluxDB2 OSS on an Azure VM Instance and would like to move the current past data that is on my local PC (has been both saved as line protocol (about 9GB) and backup files (.targz, about 4.5GB). What is the best way to move this? I will gladly provide more information if you can help me with that.
To migrate your InfluxDB 2 OSS data to your Azure VM, transfer your line protocol or backup files to the VM and use either the influx write command for line protocol files or the influx restore command for backup files to import your data, as described in the official docs - Migrate data from InfluxDB OSS to other InfluxDB instances | InfluxDB OSS v2 Documentation
Thanks for the pointer. I have tried influx restore with my new local InfluxDB server and it worked. I think the issue now is to move the backup file to cloud (which should be straightforward).
Do you have any idea if the write protocol can handle large amount of data (9GB) to the new InfluxDB on an Azure instance VM in one go?
I see. How would you write using line protocols. Say, I have an .lp file for writing into the new server on the Azure VM instance. However, the tools would not accept the file since it was larger than the allowed amount (10MB). Would you use a client library and open every line then write them out one by one?
Hi there, writing to a new InfluxDB database works when using a line protocol file (.lp). The only issue I overlooked when working with was that the lines were encoded in binary format, so I had issue when reading them initially. I think it is working great so far, thanks for the help!