Hello,
The path you need to take is:
- backup db ‘dbname’ as you already have
- import ‘dbname’ but to a new database name:
influxd restore -portable -db "dbname" -newdb "dbname_tmp" ./new_backup/
- Use a select query to side-load the data into the existing ‘dbname’:
use dbname_tmp; SELECT * INTO dbname..:MEASUREMENT FROM /.*/ GROUP BY *
As an aside, you may want to experiment with -start/-end instead of -since. -since will take backups at the file-level, and occasionally cleanup routines will cause old data to appear new at the file level. -start and -end, new in version 1.5, can be used to filter data based on the timestamps on the actual data points. The method you use depends entirely on your use-case.