DSpace7 imports via Simple Archive Format

58 views
Skip to first unread message

Jan Broulím

unread,
Mar 4, 2024, 5:24:05 AM3/4/24
to DSpace Technical Support
Hello,

I am currently testing imports with DSpace7 in a similar way which we were using for DSpace5.
The directory contains: contents, dublin_core.xml and files listed in contents (the same was working in DSpace5).

When running the command "/opt/dspace-backend_7.6/bin/dspace import --add --eperson=mye...@uk.zcu.cz --collection=123456789/55044 --source=/opt/import/1603103069943/39795/79093 --mapfile=/opt/import/index1.txt"

I obtain no error

The script has started
Destination collections:
Owning Collection: Kolekce pro testy
Started: 1709547590250
Ended: 1709547592664
Elapsed time: 2 secs (2414 msecs)
The script has completed

BUT ALSO NO FILES ARE IMPORTED.
If I change the --source parameter and replace it with a wrong directory, the script terminates with an error - which is OK.

May I please ask for any help?

Thank you

Jan

Matthias Letsch

unread,
Mar 5, 2024, 3:39:04 AM3/5/24
to DSpace Technical Support
Hello Jan,

my guess is that you are missing the -z (--zip) argument for the actual zip file inside of your folder im --source. In this zip file you should contain the files, a content file containing the filenames of your files and a dublin_core.xml:

e.g.

example.zip
- file.pdf (the actual file)
- contents (only contains string "file.pdf" in this case)
- dublin_core.xml (contains metadata)

So your command should look like this:

"/opt/dspace-backend_7.6/bin/dspace import --add --eperson=mye...@uk.zcu.cz --collection=123456789/55044 --source=/opt/import/1603103069943/39795/79093 --zip=example.zip --mapfile=/opt/import/index1.txt"

Kind regards,
Matthias
Reply all
Reply to author
Forward
0 new messages