InfluxDB® Commands
The backup commands are available for InfluxDB®. The command can be used for cmd and sh. This chapter describes the InfluxDB® commands.
InfluxDB®: backupInfluxDB.cmd [<command> <argument>] <backupPath>
Command | Description |
---|---|
--database | --database The name of the database (default is "winccoa"). |
--host | Host and port of the database (default is "127.0.0.1:8088"). |
--maxBackupCount | Number of backups kept (default is 3). |
InfluxDB®: restoreInfluxDB.cmd [<command> <argument>] <WinCC OA-project-name> <InfluxDB-backup-path>
Command | Description |
---|---|
--database | The name of the database (default is "winccoa"). |
--host | Host and port of the database (default is "127.0.0.1:8088"). |
--backup | The backup folder name (e.g. 20211021-133236) inside <InfluxDB-backup-path> (default is the newest backup). |
--password | The password for the InfluxDB authentication, no further password prompt is shown. Only ASCII characters are allowed in passwords when using this command. |
--username | The username for the InfluxDB authentication, no further username input prompt is shown. Only ASCII characters are allowed in username when using this command. |
--silent | The user will not be asked to confirm that the current database will be overwritten. This command is a switch and does not require a parameter. |
Note: The path to the influxdb command (which is the bin directory of the installation) must be added to the PATH variable.
EXAMPLES:
backupInfluxDB.cmd C:\InfluxDB_Backups
restoreInfluxDB.cmd <ProjName> C:\InfluxDB_Backups