Data Commands

The GroundWork data commands provide data lifecycle procedures for managing the GroundWork databases and property files. These commands work directly on the GroundWork data volumes.

GroundWork data volumes

Anything that uses the file system requires a volume. Volumes are persisted outside of containers and ultimately they are stored on the Linux host

  • archive-var
  • grafana-dashboards
  • grafana-etc
  • grafana-provisioning
  • influxdb - InfluxDB database
  • monarch-backup - Monarch configuration volume
  • monarch-data - Monarch data volume
  • nagios-etc
  • nagios-libexec
  • nagios-var
  • nedi-php-sess
  • nedi-rrd
  • nfdump-var
  • nginx-confd
  • noma-etc
  • pgvol - Postgres volume
  • revproxy-certs - Certificates 
  • revproxy-nginx
  • rstools-cache
  • rstools-images
  • ulg - usr/local/groundwork
  • jasperserver

GroundWork data commands

  • Clean Data
    Caution! Cleans out all existing volumes including databases and configurations, then pre-populates all databases and configurations with seed data. This includes third-party databases like NeDi.

    Prior to running this command you must run: docker-compose down

    ./docker-clean-volumes.sh
  • Migrate Data
    Applies migrations scripts to update existing volumes and databases. This includes third-party databases like NeDi.

    Prior to running this command you must run: docker-compose down

    ./docker-run-migrations.sh 
  • Backup Data
    Backs up the GroundWork volumes to your /tmp directory.

    Prior to running this command you must run: docker-compose down. This command must be run with sudo.

    ./docker-backup-volumes.sh

    The resulting file name is:

    dockergw8_backup_{timestamp}.tar.gz
  • Restore Data
    Restores the GroundWork volumes from zip archive created with docker-backup-volumes.sh.

    Prior to running this command you must run: docker-compose down. This command must be run with sudo.

    ./docker-restore-volumes.sh dockergw8_backup_{timestamp}.tar.gz
  • Rename Data
    R
    enames all volume names to conform to latest volume naming format.

    This should not be required on most installations.

    ./docker-rename-volumes.sh

Related articles