Hi Chris,

I think you might be missing the "-r" flag to tell the packager command 
that you want to use *restore* mode.  This will also default to setting 
"ignoreHandle=false", so that option shouldn't be needed.  See the 
instructions 
at 
https://wiki.lyrasis.org/display/DSDOC7x/AIP+Backup+and+Restore#AIPBackupandRestore-DefaultRestoreMode

By default, if you don't specify "-r", then it defaults to "submit" mode 
which tries to assign a new URI.  For more on the differences between 
Submit & Restore, see this section of the 
docs:  
https://wiki.lyrasis.org/display/DSDOC7x/AIP+Backup+and+Restore#AIPBackupandRestore-IngestionModes&Options

That said, it does seem like the "ignoreHandle=false" option should have 
also worked with your command.  Not sure why it would not have worked, but 
you also may want to check the logs to see if there were errors reported.

Tim

On Tuesday, July 25, 2023 at 6:31:09 PM UTC-5 Chris Clawson wrote:

> I just attempted to import an item that had been exported and deleted. I 
> wish to import it back to a new collection but want to preserve the 
> original and full handle. The importer imports the item only as new, 
> seemingly ignoring the -o option. 
> The example:
> /opt/dspace/bin/dspace packager -o ignoreHandle=false -t AIP -e 
> ch...@mydomain.org -p MHS-01376/6742 /home/chris/it...@mhs-01376-5381.zip
> A new item is created as MHS-01376-6855 and then added to my expected 
> collection. I want to keep the MHS-01376-5381 URI.
>
> I refer to this old URI in my wordpress site and don't want to run around 
> my blog posts and rename many occurrences of these newly restored items. I 
> have tried both "false" and "true" -o options, but neither restores the 
> original handle,  using this command.
> Might somebody correct me, please? (This handle has not need reassigned in 
> my existing db).
> DSpace 7.6
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/d62cdc89-8650-42df-a30c-727804263198n%40googlegroups.com.

Reply via email to