Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H haf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hivehive
  • haf
  • Merge requests
  • !194

dump_instance.sh and load_instance.sh scripts

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Maciej Krzeminski requested to merge mkrzeminski/haf_pg_dump_restore into develop Nov 22, 2022
  • Overview 63
  • Commits 3
  • Pipelines 88
  • Changes 29

Issue #65 - Prepare regression test covering database backup/restore

Issue #4 use database backup to restore HAF

The scripts save or load the haf database along with the hived state.


OPTIONS:
  --backup-dir=DIR                 Allows to specify where the dumps are located, required
  --hived-executable-path=PATH     Allows to specify where the main executable is located, required
  --hived-data-dir=DIR             Allows to specify where node data is located, required
  --haf-db-name=NAME               Allows to specify a name of database to store HAF data, required
  --haf-db-admin=NAME              Allows to specify a name of database admin role having permission to create the database
  --haf-db-host=VALUE              Allows to specify a PostgreSQL host location
  --haf-db-port=NUMBER             Allows to specify a PostgreSQL operating port
  --haf-db-jobs=NUMBER             Allows to specify how many processes are run during dump/restore
  --override-existing-backup-dir   Erases backup directory and its contents
  --help                           Display this help screen and exit

A note using Docker: hivemind SELECT * on hivemind_app view issues an error "could not resize shared memory segment" . Fixed by adding --shm-size=2gb to the docker run command.

Edited Feb 24, 2023 by Maciej Krzeminski
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: mkrzeminski/haf_pg_dump_restore