redpencilio / docker-virtuoso

Virtuoso Docker image
MIT License
3 stars 5 forks source link

added scripts to generate backups and some general maintenance tasks #5

Closed nvdk closed 2 years ago

nvdk commented 2 years ago

see https://github.com/mu-semtech/mu-cli#developing-a-new-service-script for testing

triplestore:
  create-backup:
    description: A virtuoso backup will be created db/backups.
       Parameters:
        prefix: default backup_${DATE}
        hostname: default triplestore
        username: default dba
        password: default dba
    command: mu script triplestore create-backup [prefix] [hostname] [username] [password]

  maintenance:
    description: Execute basic maintenance commands.
       Parameters:
        command : needs to be one of 'checkpoint', 'vacuum', 'dump_quads'
        hostname: default triplestore
        username: default dba
        password: default dba
    command: mu script triplestore maintenance [command] [hostname] [username] [password]
nvdk commented 2 years ago

one thing this is definitely missing is a copy statement in the dockerfile to make the script available :)

nvdk commented 2 years ago

should be able to merge this as soon as we've fixed the build pipeline