Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Archive failed with the message "External LOB folder could not be relativized!" with command line option -x #107

Open
bt-cgi opened this issue Aug 29, 2024 · 1 comment
Labels
support Support users, Q&A

Comments

@bt-cgi
Copy link

bt-cgi commented Aug 29, 2024

Hello,

I need to archive tables that contains Blob fields in command line.
I try to use the option -x=D:\POC\Blob (existing folder) and the process failed with the message:

External LOB folder d:\POC\Blob could not be relativized!

Could you please tell me what caused this error?

Without this option, the blobs fields are stored into the siard file. Could you please tell me what is the benefit of this option ?

Thanks in advance.

@mburri
Copy link
Collaborator

mburri commented Sep 13, 2024

Hi @bt-cgi
Sorry for the late answer! We are currently busy with other projects.

Regarding your question.
If your database contains some sort of binary data you'll have to options to handle it:

  1. Store the data inside your siard-archive file. This is what happened to you when you did not specify the option (-x=...)
  2. keep the binary data outside of the archive.

Option 1 is perfectly fine if your database contains only a few small blobs. But If there are lots of large blobs in your DB, the resulting siard-archive file can get quite big. It's perfectly possible that you could reach your Operating Systems file system limit this way.

This means that you should go with option 2 for larger databases and specify a folder where your blobs should be stored outside of the archive file.

You specified an absolute path - and this does not seem to work. While I'm surprised that it did not work at all, I'd advise against using absolute paths. See the documentation about the reasoning behind this: https://github.com/sfa-siard/siard-suite/blob/main/docs/user-manual/en/user-manual.adoc#archiving-databases-with-binary-data

Try with the option -x=./lobs and that's probably what you want.

I hope this still helps.

@mburri mburri added the support Support users, Q&A label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support users, Q&A
Projects
None yet
Development

No branches or pull requests

2 participants