Best way to backup Oxigraph server data #556
-
Hi, I'm evaluating Oxigraph for archiving RDF data dumps from another triple store. My Oxigraph is running on k8s with a mounted persistent storage. What's the best way to backup Oxigraph server data just in case the storage gets corrupted? Is there some admin endpoint or a command to trigger an automatic bacckup or I will have to write some custom code to extract the data and copy it to files? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Yes, |
Beta Was this translation helpful? Give feedback.
-
Hi @Tpt , thanks, this looks good. I just couldn't find it when typing: oxigraph_server --help which only shows: serve, load and help. One thing more: how I can run this command when running Oxigraph in Docker? The issue is I'm not able to access bash when running it in Docker. `PS C:\Users\piotr> docker exec -it 3914574546bc bash OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown` I'm starting it like this: Thanks, |
Beta Was this translation helpful? Give feedback.
-
My bad, I had an old version installed via cargo and I checked the old one instead of new one. I tried out the script you sent me and it works without any issues. Now I wonder about logs:
Thanks, |
Beta Was this translation helpful? Give feedback.
Yes,
./oxigraph_server backup --location directory_to_backup_from --destination directory_to_backup_to
to backup using Oxigraph internal storage format and./oxigraph_server dump --location directory_to_backup_from --file file_to_backup_to.nq
to backup in N-Quads and move data to an other RDF system. Both can work while the server is running.