[dspace-tech] Re: AIP import - bug or my error?

2023-07-29 Thread Chris Clawson
I solved my problem (with Tim's suggestion) I didn't see any examples given 
for the -r restore option, which include specifying a parent directory. The 
following example does work. I just included the -p option to specify the 
new parent collection.  This now takes an old, single item AIP and 
'restores" it to a more recently created collection (MHS-01376/6864):
[dspace]/bin/dspace packager -r -a -k -t AIP -e ch...@mydomain.org -p 
MHS-01376/6864 i...@mhs-01376-5381.zip
Thanks for the direction

On Friday, July 28, 2023 at 5:09:37 PM UTC-4 Chris Clawson wrote:

> Thanks Tim,
> But I don't see any option with the  -R restore command to direct the 
> import to a new collection. The original collection no longer exists, so 
> how will the restore -r command work if the target collection no longer 
> exists?  My Wordpress site still refers to this old item and it's URI. I 
> prefer to direct it to a specific (and new) collection, but don't care too 
> much where it goes because I can always move it around later. I do need to 
> keep the item URI to respect the references elsewhere.
>
> On Wednesday, July 26, 2023 at 2:45:48 PM UTC-4 DSpace Technical Support 
> wrote:
>
>> 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
>>
>> 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/fd8ab807-4031-4626-af32-f9729025e31dn%40googlegroups.com.


[dspace-tech] Re: AIP import - bug or my error?

2023-07-28 Thread Chris Clawson
Thanks Tim,
But I don't see any option with the  -R restore command to direct the 
import to a new collection. The original collection no longer exists, so 
how will the restore -r command work if the target collection no longer 
exists?  My Wordpress site still refers to this old item and it's URI. I 
prefer to direct it to a specific (and new) collection, but don't care too 
much where it goes because I can always move it around later. I do need to 
keep the item URI to respect the references elsewhere.

On Wednesday, July 26, 2023 at 2:45:48 PM UTC-4 DSpace Technical Support 
wrote:

> 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
>
> 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/dc41b12b-7e51-4b35-9dfb-2178fe41cf3dn%40googlegroups.com.


[dspace-tech] Re: AIP import - bug or my error?

2023-07-26 Thread DSpace Technical Support
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

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.