• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

619
Views
How to export an Influxdb database which is in a docker container?

I want to export my influxdb database as mentioned here, but my InfluxDB is in a docker container, and I'm still a beginner with it. How can I execute the following command into my container ? influxdb backup -database name /opt/data

about 3 years ago · Santiago Trujillo
1 answers
Answer question

0

You can do a docker exec & docker cp to backup your data in case you have not used host mounts -

docker exec -it $CONTAINER_ID bash -c "influxdb backup -database name /opt/data"

Once your data is generated in /opt/data, copy it to the current directory on Docker host -

docker cp $CONTAINER_ID:/opt/data ./
about 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error