InfluxDB数据备份与恢复

本文介绍了InfluxDB的数据备份和恢复流程,包括基本命令、本地与远程备份、元数据及数据库数据的恢复,强调了操作顺序,特别是先备份/恢复元数据,后备份/恢复数据库内容。同时提到了目录权限的修改和服务重启的重要性。
摘要由CSDN通过智能技术生成

InfluxDB数据备份与恢复

一、基本命令

命令:influxd backup -database dbName backup_path

可选参数:
-retention <retention policy name> 
-shard <shard ID>
-since <date>

参数解析:
retention:This flag can be used to backup a specific retention policy. For more information on retention policies, please see here. If not specified, all retention policies will be backed up.

shard:This flag can be used to backup a specific shard ID. To see which shards are available, you can run the command SHOW SHARDS using the InfluxDB query language. If not specified, all shards will be backed up.

since:This flag can be used to create a backup since a specific date, where the date must be in RFC3339 format (for example, 2015-12-24T08:12:23Z). This flag is important if you would like to take incremental backups of your database. If not specified, all timeranges within the database will be backed up. 

二、数据备份(必须先备份元数据,再备份数据

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值