Flussonic Watcher documentation

Watcher Database Management Tool

This section describes the tool for performing certain actions on the Watcher database and shows usage examples.

Use --help to get the list of commands:

/opt/flussonic/contrib/watcher --help

Use the command name and --help to get help on the usage of this command:

/opt/flussonic/contrib/watcher db --help

Actions that you can perform

With the tool /opt/flussonic/contrib/watcher you can:

  • migrate the database
/opt/flussonic/contrib/watcher db --help
  • back up and restore the database
/opt/flussonic/contrib/watcher backup --help
  • restart Watcher
/opt/flussonic/contrib/watcher restart --help
  • add and modify users
/opt/flussonic/contrib/watcher adduser --help
  • change the password for a user
/opt/flussonic/contrib/watcher reset_pass --help
  • get database revision
/opt/flussonic/contrib/watcher check --help

Other commands in this tool are not for Watcher users.


Creating a backup

To create a backup copy of the Watcher database:

/opt/flussonic/contrib/watcher backup create; 

This command creates a file with the name similar to this one: /opt/flussonic/apps/vsaas/backups/20190418154218-5fa9cb92a00d-WatcherBackup.gz

To check if there are created backup files:

/opt/flussonic/contrib/watcher backup history

To restore the data from the backup file:

/opt/flussonic/contrib/watcher backup restore -d 20190418154218