Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Merged
merged 5 commits into from
Jul 13, 2022

Conversation

nvdk
Copy link

@nvdk nvdk commented Nov 23, 2021

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 nvdk added the enhancement New feature or request label Nov 23, 2021
@nvdk nvdk requested a review from MikiDi November 23, 2021 15:15
@nvdk nvdk changed the title add a script to generate backups added scripts to generate backups and some general maintenance tasks Nov 23, 2021
@nvdk nvdk requested a review from madnificent November 23, 2021 15:26
@nvdk
Copy link
Author

nvdk commented Dec 9, 2021

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

Copy link

@MikiDi MikiDi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff --git a/Dockerfile b/Dockerfile
index a6ed59d..43e0144 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -51,6 +51,9 @@ COPY virtuoso.sh /virtuoso.sh
 RUN ln -s /usr/local/virtuoso-opensource/var/lib/virtuoso/ /var/lib/virtuoso \
     && ln -s /var/lib/virtuoso/db /data
 
+
+COPY ./scripts /app/scripts
+
 WORKDIR /data
 EXPOSE 8890
 EXPOSE 1111

Works perfectly. Tested all commands. Chunk size for dump_quads is on the small side when used in larger projects (approx 1400 files for Kaleidos), but that's preference.

@nvdk
Copy link
Author

nvdk commented May 20, 2022

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

@nvdk nvdk merged commit ab72efb into master Jul 13, 2022
@nvdk nvdk deleted the feature/backup-script branch July 13, 2022 10:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants