Search code examples
kubernetesexportinfluxdb

Export data from InfluxDb which is inside kubernetes


Is there a way to export the data from influxdb, which is inside kubernetes cluster.


Solution

  • You can backup InfluxDB data to your local computer

    1. Navigate to the influxdb/scripts directory:

    $   cd click-to-deploy/k8s/influxdb/scripts
    

    2. Run the make_backup.sh script, passing the name of your InfluxDB instance as an argument.

    $  ./make_backup.sh $APP_INSTANCE_NAME $NAMESPACE [BACKUP_FOLDER]
    

    The backup is stored in the influxdb-backup directory on your local computer.