Re: [dspace-tech] Re: Unable to restore site wide AIP backup

2019-09-25 Thread Ashim Kapoor
On Wed, 25 Sep 2019 at 22:32, Terry Brady 
wrote:

> I see that you used   -i 123456789/0 on export and are using   -i 1/0  on
> import.
>

The exported site has handle 123456789 while the handle of the site where
the import is happening is 1. That is why I did this.

The error message "  The object type of the METS manifest (COLLECTION) does
> not match up with the object type (SITE) of the DSpaceObject to be
> replaced! "  may be caused by this discrepancy.
>
> Do you want to preserve the site/community/collection handles in your
> destination repository?
>

Query : How can I ensure that I get the same ORIGINAL handle (ie.
1234567890 ) vs how can I get a new handle (ie 1 ) ? Is there a third way
eg. where I can mention a different handle of the site (  different  to the
original (123456789)/ new handle (1) )

Terry
>
> On Tue, Sep 24, 2019 at 9:56 PM Ashim Kapoor 
> wrote:
>
>> Dear All,
>>
>> Can someone please help me with this ?
>>
>> Thank you,
>> Ashim
>>
>> On Mon, 23 Sep 2019 at 15:38, Ashim Kapoor 
>> wrote:
>>
>>> Dear All,
>>>
>>> I forgot to say I am migrating from Dspace 6.3 to DSpace 6.
>>>
>>> Thank you,
>>> Ashim
>>>
>>> On Mon, 23 Sep 2019 at 15:36, Ashim Kapoor 
>>> wrote:
>>>
 Dear All,

 I created an AIP backup of my site using :-

 [dspace]/bin/dspace packager -d -a -t AIP -e  -i 123456789/0
 sitewide-dspace77-aip.zip

 I put ALL the zip files created by the above command in the folder :
 /home/ashim/my-backup/BACKUP/

 Now I am trying to restore :

 Try 1:
 dspace@ashim-VirtualBox:~/bin$ ./dspace packager -r -a -f -t AIP -e
 library@localhost -i 1/0 -o skipIfParentMissing=true
 /home/ashim/my-backup/BACKUP/sitewide-dspace77-aip.zip


 WARNING -- You are running the packager in REPLACE mode.

 REPLACE mode may be potentially dangerous as it will automatically
 remove and replace contents within DSpace.
 We highly recommend backing up all your DSpace contents (files &
 database) before continuing.

 Would you like to continue? [y/n]: y
 Beginning replacement process...

 Replacing DSpace object(s) with package located at
 /home/ashim/my-backup/BACKUP/sitewide-dspace77-aip.zip
 Will replace existing DSpace SITE [ hdl=1/0 ]

 REPLACED a total of 1 DSpace Objects.

 Would you like to view a list of all objects that were replaced? [y/n]:
 y

 REPLACED DSpace SITE [ hdl=1/0 ]


 I do NOT see any restored items in my site.

 Then I tried the following: -


 Try 2 :
 dspace@ashim-VirtualBox:~/bin$ ./dspace packager -r -a -f -t AIP -e
 library@localhost -i 1/0 -o skipIfParentMissing=true
 /home/ashim/my-backup/BACKUP/*zip


 WARNING -- You are running the packager in REPLACE mode.

 REPLACE mode may be potentially dangerous as it will automatically
 remove and replace contents within DSpace.
 We highly recommend backing up all your DSpace contents (files &
 database) before continuing.

 Would you like to continue? [y/n]: y
 Beginning replacement process...

 Replacing DSpace object(s) with package located at
 /home/ashim/my-backup/BACKUP/collect...@123456789-10.zip
 Will replace existing DSpace SITE [ hdl=1/0 ]
 org.dspace.content.packager.PackageValidationException: The object type
 of the METS manifest (COLLECTION) does not match up with the object type
 (SITE) of the DSpaceObject to be replaced!
 at
 org.dspace.content.packager.AbstractMETSIngester.replaceObject(AbstractMETSIngester.java:608)
 at
 org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1213)
 at
 org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:292)
 at org.dspace.app.packager.Packager.replace(Packager.java:737)
 at org.dspace.app.packager.Packager.main(Packager.java:377)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at
 org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
 at
 org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
 org.dspace.content.packager.PackageValidationException: The object type
 of the METS manifest (COLLECTION) does not match up with the object type
 (SITE) of the DSpaceObject to be replaced!
 dspace@ashim-VirtualBox:~/bin$

 Can someone please help me? What is the correct way of restoring?

 Thank you,
 Ashim


 --
>> All messages to this mailing list should adhere to the DuraSpace Code of
>> Conduct: 

Re: [dspace-tech] Re: Unable to restore site wide AIP backup

2019-09-25 Thread Terry Brady
I see that you used   -i 123456789/0 on export and are using   -i 1/0  on
import.

The error message "  The object type of the METS manifest (COLLECTION) does
not match up with the object type (SITE) of the DSpaceObject to be
replaced! "  may be caused by this discrepancy.

Do you want to preserve the site/community/collection handles in your
destination repository?

Terry

On Tue, Sep 24, 2019 at 9:56 PM Ashim Kapoor 
wrote:

> Dear All,
>
> Can someone please help me with this ?
>
> Thank you,
> Ashim
>
> On Mon, 23 Sep 2019 at 15:38, Ashim Kapoor 
> wrote:
>
>> Dear All,
>>
>> I forgot to say I am migrating from Dspace 6.3 to DSpace 6.
>>
>> Thank you,
>> Ashim
>>
>> On Mon, 23 Sep 2019 at 15:36, Ashim Kapoor 
>> wrote:
>>
>>> Dear All,
>>>
>>> I created an AIP backup of my site using :-
>>>
>>> [dspace]/bin/dspace packager -d -a -t AIP -e  -i 123456789/0
>>> sitewide-dspace77-aip.zip
>>>
>>> I put ALL the zip files created by the above command in the folder :
>>> /home/ashim/my-backup/BACKUP/
>>>
>>> Now I am trying to restore :
>>>
>>> Try 1:
>>> dspace@ashim-VirtualBox:~/bin$ ./dspace packager -r -a -f -t AIP -e
>>> library@localhost -i 1/0 -o skipIfParentMissing=true
>>> /home/ashim/my-backup/BACKUP/sitewide-dspace77-aip.zip
>>>
>>>
>>> WARNING -- You are running the packager in REPLACE mode.
>>>
>>> REPLACE mode may be potentially dangerous as it will automatically
>>> remove and replace contents within DSpace.
>>> We highly recommend backing up all your DSpace contents (files &
>>> database) before continuing.
>>>
>>> Would you like to continue? [y/n]: y
>>> Beginning replacement process...
>>>
>>> Replacing DSpace object(s) with package located at
>>> /home/ashim/my-backup/BACKUP/sitewide-dspace77-aip.zip
>>> Will replace existing DSpace SITE [ hdl=1/0 ]
>>>
>>> REPLACED a total of 1 DSpace Objects.
>>>
>>> Would you like to view a list of all objects that were replaced? [y/n]: y
>>>
>>> REPLACED DSpace SITE [ hdl=1/0 ]
>>>
>>>
>>> I do NOT see any restored items in my site.
>>>
>>> Then I tried the following: -
>>>
>>>
>>> Try 2 :
>>> dspace@ashim-VirtualBox:~/bin$ ./dspace packager -r -a -f -t AIP -e
>>> library@localhost -i 1/0 -o skipIfParentMissing=true
>>> /home/ashim/my-backup/BACKUP/*zip
>>>
>>>
>>> WARNING -- You are running the packager in REPLACE mode.
>>>
>>> REPLACE mode may be potentially dangerous as it will automatically
>>> remove and replace contents within DSpace.
>>> We highly recommend backing up all your DSpace contents (files &
>>> database) before continuing.
>>>
>>> Would you like to continue? [y/n]: y
>>> Beginning replacement process...
>>>
>>> Replacing DSpace object(s) with package located at
>>> /home/ashim/my-backup/BACKUP/collect...@123456789-10.zip
>>> Will replace existing DSpace SITE [ hdl=1/0 ]
>>> org.dspace.content.packager.PackageValidationException: The object type
>>> of the METS manifest (COLLECTION) does not match up with the object type
>>> (SITE) of the DSpaceObject to be replaced!
>>> at
>>> org.dspace.content.packager.AbstractMETSIngester.replaceObject(AbstractMETSIngester.java:608)
>>> at
>>> org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1213)
>>> at
>>> org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:292)
>>> at org.dspace.app.packager.Packager.replace(Packager.java:737)
>>> at org.dspace.app.packager.Packager.main(Packager.java:377)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at
>>> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
>>> at
>>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
>>> org.dspace.content.packager.PackageValidationException: The object type
>>> of the METS manifest (COLLECTION) does not match up with the object type
>>> (SITE) of the DSpaceObject to be replaced!
>>> dspace@ashim-VirtualBox:~/bin$
>>>
>>> Can someone please help me? What is the correct way of restoring?
>>>
>>> Thank you,
>>> Ashim
>>>
>>>
>>> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> 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/CAGEJAoGdyo3JHFfye-UT2wKpz3fP22Xcr0HXxMRB3EZ7RhM2LA%40mail.gmail.com
> 

Re: [dspace-tech] Re: Query for harvested items

2019-09-25 Thread José Geraldo
Hi,

You can use the tables harvested_collection and harvested_item, group by
the column last_harvested.

https://wiki.duraspace.org/display/DSDOC6x/Storage+Layer?preview=/68069687/78157937/dspace6.png


Em seg, 23 de set de 2019 às 20:56, euler  escreveu:

> Need help anyone? I'm pretty sure I'm not the only who would like to know
> this kind of statistics and I'm also sure that a lot of repositories out
> there that have some of their contents harvested from other OAI content
> providers.
>
> Thanks in advance.
>
> On Wednesday, September 18, 2019 at 3:48:14 PM UTC+8, euler wrote:
>>
>> Hi Everyone,
>>
>> I am working on a repository (DSpace 6.3) that harvests from 2 different
>> dspace repositories. I would like to ask if how can I query using either
>> solr or sql the number of harvested items for each oai provider. It would
>> also be nice if I can set the date range eg the number of items harvested
>> monthly from oai server1 from January 1, 2019 to August 31, 2019. By the
>> way, the harvesting server is only harvesting metadata and references to
>> bitstreams.
>>
>> Thanks in advance!
>>
>> euler
>>
> --
> All messages to this mailing list should adhere to the DuraSpace Code of
> Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> 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/e4f2cfc2-f82e-42cc-b227-74ce8c9d4334%40googlegroups.com
> 
> .
>


-- 
At.te,

José Geraldo

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
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/CANP4ikS5Tp5eWntNR6O6fnherqgtbj1iD0hmZqAbg7z4qPju8g%40mail.gmail.com.