I had a restore process to load data into an Ubuntu VM that I maintain for local development, and it stopped working, instead returning an error - and I haven’t been able to figure out the proper way to restore files in 1.6.
The general process I followed earlier was a sequence of commands along the lines of:
tar xvjf /vagrant/influxdb_backup.recent.tar.bz2
sudo service influxdb stop
sudo influxd restore -metadir /var/lib/influxdb/meta /tmp/recent
sudo influxd restore -database sunlink -datadir /var/lib/influxdb/data /tmp/recent
sudo chown -R influxdb:influxdb /var/lib/influxdb
# verify health of the time series files that were restored
sudo influx_inspect verify -dir /var/lib/influxdb/
However, with the release of 1.6.0 the second restore command completely fails and returns an error:
restore: -metadir or -destinationDatabase are required to restore
I thought perhaps the option -datadir was renamed, so I tried that, but that also returns an error of:
restore: flag provided but not defined: -destinationDatabase
I wasn’t entirely sure of the correct procedure to debug or ask for help here, so I’ve opened an issue on github with this detail, and was hoping that perhaps someone who’s more familiar with the 1.6 update internals could suggest how to restore this legacy format backup into a 1.6 influxDB instance.
Right now, I’m downgrading specifically to version 1.5.4 simply to let the data restoration process complete.