...
Create tar/zip archive of artifact repository, application binaries, plugins folder etc. on Source server. If you have all folders under one root folder which can be copied then archive entire folder that contains artifact repository, application binaries, plugins folder.
Code Block -- tar/zip artifacts files, You can determine artifacts repository folder by looking at flexagon.fd.repository.root system property on server command line cd /flexdeploy/artifacts tar -czvf /app/backup/flexdeploy_artifacts.tar.gz * -- tar/zip plugins folder, You can determine working folder by looking at flexagon.fd.application.root system property on server command line cd /flexdeploy/application/plugins tar -czvf /app/backup/flexdeploy_plugins.tar.gz * -- tar/zip influxdb folder, You can determine working folder by looking at flexagon.fd.application.root system property on server command line cd /flexdeploy/influxdb tar -czvf /app/backup/flexdeploy_influx.tar.gz *
Copy tar files to target FlexDeploy server and extract it in same location as source. If location is different, some files may need adjustment. (For example, setenv.sh, config.yaml)
Code Block -- extract artifacts files, You can determine artifacts repository folder by looking at flexagon.fd.repository.root system property on server command line cd /flexdeploy/artifacts rm -rf * tar -xzvf /app/backup/flexdeploy_artifacts_prod.tar.gz -- extract plugins folder, You can determine working folder by looking at flexagon.fd.application.root system property on server command line cd /flexdeploy/application/plugins rm -rf * tar -xzvf /app/backup/flexdeploy_plugins.tar.gz -- extract plugins folder, You can determine working folder by looking at flexagon.fd.application.root system property on server command line cd /flexdeploy/influxdb rm -rf * tar -xzvf /app/backup/flexdeploy_influx.tar.gz
Import Metrics Data
Start up the Influx database so that the time series data can be imported into the target.
Initialize InfluxDB with org on the target server.
Code Block -- Initialize InfluxDB org. You can determine working folder by looking at flexagon.fd.application.root system property on server command line cd /flexdeploy/influxdb -- Modify the values in the command below to what you used in the installer config in the source server ./influx setup --bucket flexbucket --token <token> --org flexdeploy --username=flexuser --password=<password> --host=http://localhost:8086 --force
Import data backed up from the source to the target Influx database.
Code Block -- Import all the data from the source InfluxDB. You can determine working folder by looking at flexagon.fd.application.root system property on server command line cd /flexdeploy/influxdb ./influx restore --full ./restore/ rm -rf ./restore
Stop the Influx database running on the target server.
Verify that the config.yaml in /flexdeploy/influxdb/config directory reference to a valid path for the bolt-path, engine-path and the sqlite-path attributes
...