[GeoNetwork-users] batch import

Hi all,

I installed a new geonetwork version (2.10.3).
I exported in the old instance all metadata as zip.
I would like to restore in one-shot all the metadata in the new geonetwork maintaining the categories, is it possible?

In the batch import I don't see the zip as possibility for one file, is anyway allowed? and hence is it possible to assign
the categories automatically on import? (of course I created the same category in the new GN instance).

Regards

Eugenio

Hi Eugenio,

I'm doing the same thing at the moment. I have had more luck using the
Geonetwork harvester, which does bring categories across- I have an email
to the list about how to preserve ownership and groupownership though.

Jo

On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com>
wrote:

Hi all,

I installed a new geonetwork version (2.10.3).
I exported in the old instance all metadata as zip.
I would like to restore in one-shot all the metadata in the new geonetwork
maintaining the categories, is it possible?

In the batch import I don't see the zip as possibility for one file, is
anyway allowed? and hence is it possible to assign
the categories automatically on import? (of course I created the same
category in the new GN instance).

Regards

Eugenio

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform
<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi Eugenio

In batch import you need to provide the folder path (Folder should be in
the same server as GeoNetwork). You can put there the file, but make sure
to rename it to mef instead of zip, I think otherwise the import doesn't
process the file.

The categories I guess are assigned from the information in the mef file.

At the end of the batch process if you have all metadata in one mef file,
you'll see a message that has been imported 1 metadata. The message is not
very accurate, informs about the number of files imported, but not about
the real number of metadata records imported. But querying the catalog
should have imported all the metadata.

Regards,
Jose García

On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook <jocook@anonymised.com> wrote:

Hi Eugenio,

I'm doing the same thing at the moment. I have had more luck using the
Geonetwork harvester, which does bring categories across- I have an email
to the list about how to preserve ownership and groupownership though.

Jo

On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com>
wrote:

> Hi all,
>
> I installed a new geonetwork version (2.10.3).
> I exported in the old instance all metadata as zip.
> I would like to restore in one-shot all the metadata in the new
geonetwork
> maintaining the categories, is it possible?
>
> In the batch import I don't see the zip as possibility for one file, is
> anyway allowed? and hence is it possible to assign
> the categories automatically on import? (of course I created the same
> category in the new GN instance).
>
> Regards
>
> Eugenio
>
>
>
>
------------------------------------------------------------------------------
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>

--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform
<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Hi,

Did you try an upgrade first ? (http://geonetwork-opensource.org/manuals/2.10.3/eng/users/quickstartguide/installing/index.html#upgrading-to-a-new-version)
I guess it would be the preferred way...

Apart from that, MEF format (also called the ZIP fomat when doing an export) supports GN categories, so it should be kept, yes.
I don't know with batch import, but using the Metadata insert menu entry (if your ZIP file is not too big), it should work. Use the MEF format.

Cheers

Jean

Le 04/11/2014 11:50, Eugenio Trumpy a écrit :

Hi all,

I installed a new geonetwork version (2.10.3).
I exported in the old instance all metadata as zip.
I would like to restore in one-shot all the metadata in the new geonetwork maintaining the categories, is it possible?

In the batch import I don't see the zip as possibility for one file, is anyway allowed? and hence is it possible to assign
the categories automatically on import? (of course I created the same category in the new GN instance).

Regards

Eugenio

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr

Dear Jose Garcìa,

I followed your suggestion but probably I'm missing something.
I uploaded the archive_metadata.zip on my geonetwork server,
i renamed the zip file in mef, but nothing happens.
I hope the categories will be assigned in the import since I reproduced the same categories in the new instance.

Actually inside the zip file I have a lot of folders, named with a unique code, like '0a4fa121-4efe-48bd-b2e8-1a1ddb8bb33d',
where therein a info.xml, containing the info of the groupship and the categories belonging, then there is another folder containing
the metadata.xml.

What am I missing?

Regards

E.

From: jose.garcia@anonymised.com
Date: Tue, 4 Nov 2014 12:17:09 +0100
Subject: Re: [GeoNetwork-users] batch import
To: jocook@anonymised.com
CC: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net

Hi Eugenio
In batch import you need to provide the folder path (Folder should be in the same server as GeoNetwork). You can put there the file, but make sure to rename it to mef instead of zip, I think otherwise the import doesn't process the file.
The categories I guess are assigned from the information in the mef file.
At the end of the batch process if you have all metadata in one mef file, you'll see a message that has been imported 1 metadata. The message is not very accurate, informs about the number of files imported, but not about the real number of metadata records imported. But querying the catalog should have imported all the metadata.
Regards,Jose García
On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook <jocook@anonymised.com> wrote:
Hi Eugenio,

I'm doing the same thing at the moment. I have had more luck using the

Geonetwork harvester, which does bring categories across- I have an email

to the list about how to preserve ownership and groupownership though.

Jo

On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com>

wrote:

Hi all,

I installed a new geonetwork version (2.10.3).

I exported in the old instance all metadata as zip.

I would like to restore in one-shot all the metadata in the new geonetwork

maintaining the categories, is it possible?

In the batch import I don't see the zip as possibility for one file, is

anyway allowed? and hence is it possible to assign

the categories automatically on import? (of course I created the same

category in the new GN instance).

Regards

Eugenio

------------------------------------------------------------------------------

_______________________________________________

GeoNetwork-users mailing list

GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at

http://sourceforge.net/projects/geonetwork

--

*Jo Cook*

Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18

7RL, UK

t:+44 7930 524 155

iShare - Data integration and publishing platform

<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.

Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.

864201149.

------------------------------------------------------------------------------

_______________________________________________

GeoNetwork-users mailing list

GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe Netherlandshttp://GeoCat.net

Hi Jose,

eventually I was able to restore all the metadata, but the categories were not filled-in.
I mean I have al the metadata but the original category, owner and group has not been maintained.
I have the metadata belonging to the admin user, no group and no categories assigned.

I used the zip file renamed in mef, and I used the batch import function.

Let me know where I was wrong, or any hints to perform this action?

Thanks and regards

Eugenio

From: frippe12573@anonymised.com
To: jose.garcia@anonymised.com; jocook@anonymised.com
CC: geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] batch import
Date: Tue, 4 Nov 2014 12:44:26 +0100

Dear Jose Garcìa,

I followed your suggestion but probably I'm missing something.
I uploaded the archive_metadata.zip on my geonetwork server,
i renamed the zip file in mef, but nothing happens.
I hope the categories will be assigned in the import since I reproduced the same categories in the new instance.

Actually inside the zip file I have a lot of folders, named with a unique code, like '0a4fa121-4efe-48bd-b2e8-1a1ddb8bb33d',
where therein a info.xml, containing the info of the groupship and the categories belonging, then there is another folder containing
the metadata.xml.

What am I missing?

Regards

E.

From: jose.garcia@anonymised.com
Date: Tue, 4 Nov 2014 12:17:09 +0100
Subject: Re: [GeoNetwork-users] batch import
To: jocook@anonymised.com
CC: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net

Hi Eugenio
In batch import you need to provide the folder path (Folder should be in the same server as GeoNetwork). You can put there the file, but make sure to rename it to mef instead of zip, I think otherwise the import doesn't process the file.
The categories I guess are assigned from the information in the mef file.
At the end of the batch process if you have all metadata in one mef file, you'll see a message that has been imported 1 metadata. The message is not very accurate, informs about the number of files imported, but not about the real number of metadata records imported. But querying the catalog should have imported all the metadata.
Regards,Jose García
On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook <jocook@anonymised.com> wrote:
Hi Eugenio,

I'm doing the same thing at the moment. I have had more luck using the

Geonetwork harvester, which does bring categories across- I have an email

to the list about how to preserve ownership and groupownership though.

Jo

On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com>

wrote:

Hi all,

I installed a new geonetwork version (2.10.3).

I exported in the old instance all metadata as zip.

I would like to restore in one-shot all the metadata in the new geonetwork

maintaining the categories, is it possible?

In the batch import I don't see the zip as possibility for one file, is

anyway allowed? and hence is it possible to assign

the categories automatically on import? (of course I created the same

category in the new GN instance).

Regards

Eugenio

------------------------------------------------------------------------------

_______________________________________________

GeoNetwork-users mailing list

GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at

http://sourceforge.net/projects/geonetwork

--

*Jo Cook*

Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18

7RL, UK

t:+44 7930 524 155

iShare - Data integration and publishing platform

<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.

Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.

864201149.

------------------------------------------------------------------------------

_______________________________________________

GeoNetwork-users mailing list

GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe Netherlandshttp://GeoCat.net

Hi Eugenio,

I had better luck using the normal import, NOT the batch import. You can
then choose the zip file or mef file from your local machine, not the
server. This correctly brought in categories, groups and owners.

Jo

On Tue, Nov 4, 2014 at 5:44 PM, Eugenio Trumpy <frippe12573@anonymised.com>
wrote:

Hi Jose,

eventually I was able to restore all the metadata, but the categories were
not filled-in.
I mean I have al the metadata but the original category, owner and group
has not been maintained.
I have the metadata belonging to the admin user, no group and no
categories assigned.

I used the zip file renamed in mef, and I used the batch import function.

Let me know where I was wrong, or any hints to perform this action?

Thanks and regards

Eugenio

------------------------------
From: frippe12573@anonymised.com
To: jose.garcia@anonymised.com; jocook@anonymised.com
CC: geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] batch import
Date: Tue, 4 Nov 2014 12:44:26 +0100

Dear Jose Garcìa,

I followed your suggestion but probably I'm missing something.
I uploaded the archive_metadata.zip on my geonetwork server,
i renamed the zip file in mef, but nothing happens.
I hope the categories will be assigned in the import since I reproduced
the same categories in the new instance.

Actually inside the zip file I have a lot of folders, named with a unique
code, like '0a4fa121-4efe-48bd-b2e8-1a1ddb8bb33d',
where therein a info.xml, containing the info of the groupship and the
categories belonging, then there is another folder containing
the metadata.xml.

What am I missing?

Regards

E.

------------------------------
From: jose.garcia@anonymised.com
Date: Tue, 4 Nov 2014 12:17:09 +0100
Subject: Re: [GeoNetwork-users] batch import
To: jocook@anonymised.com
CC: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net

Hi Eugenio

In batch import you need to provide the folder path (Folder should be in
the same server as GeoNetwork). You can put there the file, but make sure
to rename it to mef instead of zip, I think otherwise the import doesn't
process the file.

The categories I guess are assigned from the information in the mef file.

At the end of the batch process if you have all metadata in one mef file,
you'll see a message that has been imported 1 metadata. The message is not
very accurate, informs about the number of files imported, but not about
the real number of metadata records imported. But querying the catalog
should have imported all the metadata.

Regards,
Jose García

On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook <jocook@anonymised.com>
wrote:

Hi Eugenio,

I'm doing the same thing at the moment. I have had more luck using the
Geonetwork harvester, which does bring categories across- I have an email
to the list about how to preserve ownership and groupownership though.

Jo

On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com>
wrote:

> Hi all,
>
> I installed a new geonetwork version (2.10.3).
> I exported in the old instance all metadata as zip.
> I would like to restore in one-shot all the metadata in the new
geonetwork
> maintaining the categories, is it possible?
>
> In the batch import I don't see the zip as possibility for one file, is
> anyway allowed? and hence is it possible to assign
> the categories automatically on import? (of course I created the same
> category in the new GN instance).
>
> Regards
>
> Eugenio
>
>
>
>
------------------------------------------------------------------------------
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>

--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform
<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform
<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi Jose,

I followed your suggestion, I reimported again all the metadata (581) of course after a complete erase.
I used 'Metadata import' uploading the backup.zip as mef file.
Unfortunately, my metadata has not the category again as well as the Owner, I wonder if I had to choose (check the box)
'Assign ti current catalogue' to maintain those information on importing.

Regards

Eugenio

From: jocook@anonymised.com
Date: Tue, 4 Nov 2014 17:46:25 +0000
Subject: Re: [GeoNetwork-users] batch import
To: frippe12573@anonymised.com
CC: jose.garcia@anonymised.com; geonetwork-users@lists.sourceforge.net

Hi Eugenio,
I had better luck using the normal import, NOT the batch import. You can then choose the zip file or mef file from your local machine, not the server. This correctly brought in categories, groups and owners.
Jo
On Tue, Nov 4, 2014 at 5:44 PM, Eugenio Trumpy <frippe12573@anonymised.com> wrote:

Hi Jose,

eventually I was able to restore all the metadata, but the categories were not filled-in.
I mean I have al the metadata but the original category, owner and group has not been maintained.
I have the metadata belonging to the admin user, no group and no categories assigned.

I used the zip file renamed in mef, and I used the batch import function.

Let me know where I was wrong, or any hints to perform this action?

Thanks and regards

Eugenio

From: frippe12573@anonymised.com
To: jose.garcia@anonymised.com; jocook@anonymised.com
CC: geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] batch import
Date: Tue, 4 Nov 2014 12:44:26 +0100

Dear Jose Garcìa,

I followed your suggestion but probably I'm missing something.
I uploaded the archive_metadata.zip on my geonetwork server,
i renamed the zip file in mef, but nothing happens.
I hope the categories will be assigned in the import since I reproduced the same categories in the new instance.

Actually inside the zip file I have a lot of folders, named with a unique code, like '0a4fa121-4efe-48bd-b2e8-1a1ddb8bb33d',
where therein a info.xml, containing the info of the groupship and the categories belonging, then there is another folder containing
the metadata.xml.

What am I missing?

Regards

E.

From: jose.garcia@anonymised.com
Date: Tue, 4 Nov 2014 12:17:09 +0100
Subject: Re: [GeoNetwork-users] batch import
To: jocook@anonymised.com
CC: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net

Hi Eugenio
In batch import you need to provide the folder path (Folder should be in the same server as GeoNetwork). You can put there the file, but make sure to rename it to mef instead of zip, I think otherwise the import doesn't process the file.
The categories I guess are assigned from the information in the mef file.
At the end of the batch process if you have all metadata in one mef file, you'll see a message that has been imported 1 metadata. The message is not very accurate, informs about the number of files imported, but not about the real number of metadata records imported. But querying the catalog should have imported all the metadata.
Regards,Jose García
On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook <jocook@anonymised.com> wrote:
Hi Eugenio,

I'm doing the same thing at the moment. I have had more luck using the

Geonetwork harvester, which does bring categories across- I have an email

to the list about how to preserve ownership and groupownership though.

Jo

On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com>

wrote:

Hi all,

I installed a new geonetwork version (2.10.3).

I exported in the old instance all metadata as zip.

I would like to restore in one-shot all the metadata in the new geonetwork

maintaining the categories, is it possible?

In the batch import I don't see the zip as possibility for one file, is

anyway allowed? and hence is it possible to assign

the categories automatically on import? (of course I created the same

category in the new GN instance).

Regards

Eugenio

------------------------------------------------------------------------------

_______________________________________________

GeoNetwork-users mailing list

GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at

http://sourceforge.net/projects/geonetwork

--

*Jo Cook*

Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18

7RL, UK

t:+44 7930 524 155

iShare - Data integration and publishing platform

<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.

Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.

864201149.

------------------------------------------------------------------------------

_______________________________________________

GeoNetwork-users mailing list

GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe Netherlandshttp://GeoCat.net

--
Jo Cook
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18 7RL, UK

t:+44 7930 524 155

iShare - Data integration and publishing platform

*****************************************

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN
VAT no. 864201149.
                 

Hi,

"Assign to current catalogue" is just about changing the catalogue ID, in the metadata record. If you don't check it, your imported metadata will be seen as belonging to previous catalogue (in advanced search, you can filter by catalogue. It will put some mess. Whatever, you should check it. But I don't see why it would solve your issue.
Is your new catalogue accessible on the web ?

Again, best way, I think, would be to perform a real upgrade, instead of this export/import thing.
Jean

Le 05/11/2014 15:22, Eugenio Trumpy a écrit :

Hi Jose,

I followed your suggestion, I reimported again all the metadata (581) of course after a complete erase.
I used 'Metadata import' uploading the backup.zip as mef file.
Unfortunately, my metadata has not the category again as well as the Owner, I wonder if I had to choose (check the box)
'Assign ti current catalogue' to maintain those information on importing.

Regards

Eugenio

From: jocook@anonymised.com
Date: Tue, 4 Nov 2014 17:46:25 +0000
Subject: Re: [GeoNetwork-users] batch import
To: frippe12573@anonymised.com
CC: jose.garcia@anonymised.com; geonetwork-users@lists.sourceforge.net

Hi Eugenio,
I had better luck using the normal import, NOT the batch import. You can then choose the zip file or mef file from your local machine, not the server. This correctly brought in categories, groups and owners.
Jo
On Tue, Nov 4, 2014 at 5:44 PM, Eugenio Trumpy <frippe12573@anonymised.com> wrote:

Hi Jose,

eventually I was able to restore all the metadata, but the categories were not filled-in.
I mean I have al the metadata but the original category, owner and group has not been maintained.
I have the metadata belonging to the admin user, no group and no categories assigned.

I used the zip file renamed in mef, and I used the batch import function.

Let me know where I was wrong, or any hints to perform this action?

Thanks and regards

Eugenio

From: frippe12573@anonymised.com
To: jose.garcia@anonymised.com; jocook@anonymised.com
CC: geonetwork-users@lists.sourceforge.net
Subject: RE: [GeoNetwork-users] batch import
Date: Tue, 4 Nov 2014 12:44:26 +0100

Dear Jose Garcìa,

I followed your suggestion but probably I'm missing something.
I uploaded the archive_metadata.zip on my geonetwork server,
i renamed the zip file in mef, but nothing happens.
I hope the categories will be assigned in the import since I reproduced the same categories in the new instance.

Actually inside the zip file I have a lot of folders, named with a unique code, like '0a4fa121-4efe-48bd-b2e8-1a1ddb8bb33d',
where therein a info.xml, containing the info of the groupship and the categories belonging, then there is another folder containing
the metadata.xml.

What am I missing?

Regards

E.

From: jose.garcia@anonymised.com
Date: Tue, 4 Nov 2014 12:17:09 +0100
Subject: Re: [GeoNetwork-users] batch import
To: jocook@anonymised.com
CC: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net

Hi Eugenio
In batch import you need to provide the folder path (Folder should be in the same server as GeoNetwork). You can put there the file, but make sure to rename it to mef instead of zip, I think otherwise the import doesn't process the file.
The categories I guess are assigned from the information in the mef file.
At the end of the batch process if you have all metadata in one mef file, you'll see a message that has been imported 1 metadata. The message is not very accurate, informs about the number of files imported, but not about the real number of metadata records imported. But querying the catalog should have imported all the metadata.
Regards,Jose García
On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook <jocook@anonymised.com> wrote:
Hi Eugenio,

I'm doing the same thing at the moment. I have had more luck using the

Geonetwork harvester, which does bring categories across- I have an email

to the list about how to preserve ownership and groupownership though.

Jo

On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com>

wrote:

Hi all,
I installed a new geonetwork version (2.10.3).
I exported in the old instance all metadata as zip.
I would like to restore in one-shot all the metadata in the new geonetwork
maintaining the categories, is it possible?
In the batch import I don't see the zip as possibility for one file, is
anyway allowed? and hence is it possible to assign
the categories automatically on import? (of course I created the same
category in the new GN instance).
Regards
Eugenio
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*Jo Cook*

Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18

7RL, UK

t:+44 7930 524 155

iShare - Data integration and publishing platform

<http://www.isharemaps.com/&gt;

*****************************************

  Company registration no. 5410695. Registered in England and Wales.

Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.

864201149.

------------------------------------------------------------------------------

_______________________________________________

GeoNetwork-users mailing list

GeoNetwork-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/geonetwork-users

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr

Hi Jean,

The instructions for "doing an upgrade" are limited at best:
http://geonetwork-opensource.org/manuals/2.10.3/eng/users/quickstartguide/installing/index.html#upgrading-to-a-new-version.
If you are running geonetwork as a war file in tomcat, how can you upgrade
without undeploying the original war file? It seems to me that creating a
new installation and importing the data from one to another is the only
safe way of doing things without risking destroying the original
installation. If there is a better way then the documentation should be
improved to explain it.

Jo

On Wed, Nov 5, 2014 at 3:20 PM, Jean Pommier <
jean.pommier@anonymised.com> wrote:

Hi,

"Assign to current catalogue" is just about changing the catalogue ID,
in the metadata record. If you don't check it, your imported metadata
will be seen as belonging to previous catalogue (in advanced search, you
can filter by catalogue. It will put some mess. Whatever, you should
check it. But I don't see why it would solve your issue.
Is your new catalogue accessible on the web ?

Again, best way, I think, would be to perform a real upgrade, instead of
this export/import thing.
Jean

Le 05/11/2014 15:22, Eugenio Trumpy a écrit :
> Hi Jose,
>
> I followed your suggestion, I reimported again all the metadata (581) of
course after a complete erase.
> I used 'Metadata import' uploading the backup.zip as mef file.
> Unfortunately, my metadata has not the category again as well as the
Owner, I wonder if I had to choose (check the box)
> 'Assign ti current catalogue' to maintain those information on importing.
>
> Regards
>
> Eugenio
>
> From: jocook@anonymised.com
> Date: Tue, 4 Nov 2014 17:46:25 +0000
> Subject: Re: [GeoNetwork-users] batch import
> To: frippe12573@anonymised.com
> CC: jose.garcia@anonymised.com; geonetwork-users@lists.sourceforge.net
>
> Hi Eugenio,
> I had better luck using the normal import, NOT the batch import. You can
then choose the zip file or mef file from your local machine, not the
server. This correctly brought in categories, groups and owners.
> Jo
> On Tue, Nov 4, 2014 at 5:44 PM, Eugenio Trumpy <frippe12573@anonymised.com>
wrote:
>
>
>
> Hi Jose,
>
> eventually I was able to restore all the metadata, but the categories
were not filled-in.
> I mean I have al the metadata but the original category, owner and group
has not been maintained.
> I have the metadata belonging to the admin user, no group and no
categories assigned.
>
> I used the zip file renamed in mef, and I used the batch import function.
>
> Let me know where I was wrong, or any hints to perform this action?
>
> Thanks and regards
>
> Eugenio
>
> From: frippe12573@anonymised.com
> To: jose.garcia@anonymised.com; jocook@anonymised.com
> CC: geonetwork-users@lists.sourceforge.net
> Subject: RE: [GeoNetwork-users] batch import
> Date: Tue, 4 Nov 2014 12:44:26 +0100
>
>
>
>
> Dear Jose Garcìa,
>
> I followed your suggestion but probably I'm missing something.
> I uploaded the archive_metadata.zip on my geonetwork server,
> i renamed the zip file in mef, but nothing happens.
> I hope the categories will be assigned in the import since I reproduced
the same categories in the new instance.
>
> Actually inside the zip file I have a lot of folders, named with a
unique code, like '0a4fa121-4efe-48bd-b2e8-1a1ddb8bb33d',
> where therein a info.xml, containing the info of the groupship and the
categories belonging, then there is another folder containing
> the metadata.xml.
>
> What am I missing?
>
> Regards
>
> E.
>
> From: jose.garcia@anonymised.com
> Date: Tue, 4 Nov 2014 12:17:09 +0100
> Subject: Re: [GeoNetwork-users] batch import
> To: jocook@anonymised.com
> CC: frippe12573@anonymised.com; geonetwork-users@lists.sourceforge.net
>
> Hi Eugenio
> In batch import you need to provide the folder path (Folder should be in
the same server as GeoNetwork). You can put there the file, but make sure
to rename it to mef instead of zip, I think otherwise the import doesn't
process the file.
> The categories I guess are assigned from the information in the mef file.
> At the end of the batch process if you have all metadata in one mef
file, you'll see a message that has been imported 1 metadata. The message
is not very accurate, informs about the number of files imported, but not
about the real number of metadata records imported. But querying the
catalog should have imported all the metadata.
> Regards,Jose García
> On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook <jocook@anonymised.com>
wrote:
> Hi Eugenio,
>
>
>
> I'm doing the same thing at the moment. I have had more luck using the
>
> Geonetwork harvester, which does bring categories across- I have an email
>
> to the list about how to preserve ownership and groupownership though.
>
>
>
> Jo
>
>
>
> On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy <frippe12573@anonymised.com
>
>
> wrote:
>
>
>
>> Hi all,
>> I installed a new geonetwork version (2.10.3).
>> I exported in the old instance all metadata as zip.
>> I would like to restore in one-shot all the metadata in the new
geonetwork
>> maintaining the categories, is it possible?
>> In the batch import I don't see the zip as possibility for one file, is
>> anyway allowed? and hence is it possible to assign
>> the categories automatically on import? (of course I created the same
>> category in the new GN instance).
>> Regards
>> Eugenio
>>
------------------------------------------------------------------------------
>> _______________________________________________
>> GeoNetwork-users mailing list
>> GeoNetwork-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
>> GeoNetwork OpenSource is maintained at
>> http://sourceforge.net/projects/geonetwork
>
>
>
>
>
>
> --
>
> *Jo Cook*
>
> Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey,
KT18
>
> 7RL, UK
>
> t:+44 7930 524 155
>
> iShare - Data integration and publishing platform
>
> <http://www.isharemaps.com/&gt;
>
>
>
> *****************************************
>
>
>
> Company registration no. 5410695. Registered in England and Wales.
>
> Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
>
> 864201149.
>
>
------------------------------------------------------------------------------
>
> _______________________________________________
>
> GeoNetwork-users mailing list
>
> GeoNetwork-users@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
>
> GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
>
>
>

--

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform
<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi Jo,

OK, right. Sure, there is room for improvement and Howtos in the current documentation.
But your question here is as much about tomcat than about geonetwork.

_Quick answer : _
- stop tomcat, rename the old webapp, restart tomcat, deploy the new war. You'll have both geonetwork instances working side by side. Should be.
   or rename the war file before deploying it. Same result.
- check it works
- stop tomcat, copy the data directory and set the DB (depends which DB you're using). Restart tomcat. The upgrade should perform automatically.
Check the logs to see if everything goes fines.

_More detailed example :_
Here is what I do when I want to perform an upgrade (I'm using war files, on tomcat7) :
- I assume you're using an external DB (postgresql) in my case. I guess with H2 DB, it will be possible too, but I never did.
- If not done, you'd better move your data directory out of the webapp. See "GeoNetwork Data Directory" here : http://geonetwork-opensource.org/manuals/2.10.3/eng/users/admin/advanced-configuration/index.html
You have several ways to declare the path to the data directory. I usually do it in my WEB-INF/config-overrides-prod.xml file since it allows me for different setups depending whether I'm working on prod or developing at home.
Here an example of what it could look like (most of it is for the postgresql params. The only one about data dir is in bold):
<overrides>
     <properties>
                 <db.user>geonetwork</db.user>
                 <db.pass>geonetwork</db.pass>
<db.dbname>jdbc:postgresql://localhost:5432/gm_risk</db.dbname>
         </properties>

         <file name=".*/WEB-INF/config.xml">
*<addXML xpath="appHandler"><param name="geonetwork.dir" value="/home/jean/tomcat7/data/gm-risk-datadir" /></addXML>*
                 <replaceXML xpath="resources">
                         <resource enabled="true">
                                 <name>main-db</name>
<provider>jeeves.resources.dbms.ApacheDBCPool</provider>
                                 <config>
<user>${db.user}</user>
<password>${db.pass}</password>
<driver>org.postgis.DriverWrapper</driver>
<url>${db.dbname}</url>
<poolSize>10</poolSize>
<validationQuery>SELECT 1</validationQuery>
                                 </config>
                         </resource>
                </replaceXML>
         </file>
</overrides>

If you already have some content, you will of course want to move (or copy) the WEB-INF/data folder and rename it. In this example, I renamed it to gm-risk-datadir.
.. restart tomcat, and check the changes worked (you'll have the datadir listed in Admin/System Information)
Don't forget the access rights. Ideally, tomcat is to be the owner of the datadir.

OK, so now you have data /and/ DB out of your webapp. Not necessary but easier.

- stop tomcat. Change you old app's name (say, geonetwork_old). Restart tomcat. The old app should have now the changed name.
- deploy the new war file
- clone the DB and datadir
- stop tomcat. Adjust your config-override-prod.xml file, on the new geonetwork instance to point to the DB and datadir clones.
- Restart tomcat. check it did find and use the DB and datdir declared on your .xml config file (see Admin/System information page)
- Now you should have 2 instances of geonetwork running alongside and independently : the old one and the new one. And at this point, if the new one works, it should already have upgraded the DB and datadir if necessary.
- Take your time to check everything is OK, and then remove the old app.

If everything is not OK, check the logs.

And of course, before you run this, backup everything, in case I forgot an important step ;o)
Have fun !

Jean

Le 05/11/2014 17:42, Jo Cook a écrit :

Hi Jean,

The instructions for "doing an upgrade" are limited at best: http://geonetwork-opensource.org/manuals/2.10.3/eng/users/quickstartguide/installing/index.html#upgrading-to-a-new-version. If you are running geonetwork as a war file in tomcat, how can you upgrade without undeploying the original war file? It seems to me that creating a new installation and importing the data from one to another is the only safe way of doing things without risking destroying the original installation. If there is a better way then the documentation should be improved to explain it.

Jo

On Wed, Nov 5, 2014 at 3:20 PM, Jean Pommier <jean.pommier@anonymised.com <mailto:jean.pommier@anonymised.com>> wrote:

    Hi,

    "Assign to current catalogue" is just about changing the catalogue ID,
    in the metadata record. If you don't check it, your imported metadata
    will be seen as belonging to previous catalogue (in advanced
    search, you
    can filter by catalogue. It will put some mess. Whatever, you should
    check it. But I don't see why it would solve your issue.
    Is your new catalogue accessible on the web ?

    Again, best way, I think, would be to perform a real upgrade,
    instead of
    this export/import thing.
    Jean

    Le 05/11/2014 15:22, Eugenio Trumpy a écrit :
    > Hi Jose,
    >
    > I followed your suggestion, I reimported again all the metadata
    (581) of course after a complete erase.
    > I used 'Metadata import' uploading the backup.zip as mef file.
    > Unfortunately, my metadata has not the category again as well as
    the Owner, I wonder if I had to choose (check the box)
    > 'Assign ti current catalogue' to maintain those information on
    importing.
    >
    > Regards
    >
    > Eugenio
    >
    > From: jocook@anonymised.com <mailto:jocook@anonymised.com>
    > Date: Tue, 4 Nov 2014 17:46:25 +0000
    > Subject: Re: [GeoNetwork-users] batch import
    > To: frippe12573@anonymised.com <mailto:frippe12573@anonymised.com>
    > CC: jose.garcia@anonymised.com <mailto:jose.garcia@anonymised.com>;
    geonetwork-users@lists.sourceforge.net
    <mailto:geonetwork-users@lists.sourceforge.net>
    >
    > Hi Eugenio,
    > I had better luck using the normal import, NOT the batch import.
    You can then choose the zip file or mef file from your local
    machine, not the server. This correctly brought in categories,
    groups and owners.
    > Jo
    > On Tue, Nov 4, 2014 at 5:44 PM, Eugenio Trumpy
    <frippe12573@anonymised.com <mailto:frippe12573@anonymised.com>> wrote:
    >
    > Hi Jose,
    >
    > eventually I was able to restore all the metadata, but the
    categories were not filled-in.
    > I mean I have al the metadata but the original category, owner
    and group has not been maintained.
    > I have the metadata belonging to the admin user, no group and no
    categories assigned.
    >
    > I used the zip file renamed in mef, and I used the batch import
    function.
    >
    > Let me know where I was wrong, or any hints to perform this action?
    >
    > Thanks and regards
    >
    > Eugenio
    >
    > From: frippe12573@anonymised.com <mailto:frippe12573@anonymised.com>
    > To: jose.garcia@anonymised.com <mailto:jose.garcia@anonymised.com>;
    jocook@anonymised.com <mailto:jocook@anonymised.com>
    > CC: geonetwork-users@lists.sourceforge.net
    <mailto:geonetwork-users@lists.sourceforge.net>
    > Subject: RE: [GeoNetwork-users] batch import
    > Date: Tue, 4 Nov 2014 12:44:26 +0100
    >
    > Dear Jose Garcìa,
    >
    > I followed your suggestion but probably I'm missing something.
    > I uploaded the archive_metadata.zip on my geonetwork server,
    > i renamed the zip file in mef, but nothing happens.
    > I hope the categories will be assigned in the import since I
    reproduced the same categories in the new instance.
    >
    > Actually inside the zip file I have a lot of folders, named with
    a unique code, like '0a4fa121-4efe-48bd-b2e8-1a1ddb8bb33d',
    > where therein a info.xml, containing the info of the groupship
    and the categories belonging, then there is another folder containing
    > the metadata.xml.
    >
    > What am I missing?
    >
    > Regards
    >
    > E.
    >
    > From: jose.garcia@anonymised.com <mailto:jose.garcia@anonymised.com>
    > Date: Tue, 4 Nov 2014 12:17:09 +0100
    > Subject: Re: [GeoNetwork-users] batch import
    > To: jocook@anonymised.com <mailto:jocook@anonymised.com>
    > CC: frippe12573@anonymised.com <mailto:frippe12573@anonymised.com>;
    geonetwork-users@lists.sourceforge.net
    <mailto:geonetwork-users@lists.sourceforge.net>
    >
    > Hi Eugenio
    > In batch import you need to provide the folder path (Folder
    should be in the same server as GeoNetwork). You can put there the
    file, but make sure to rename it to mef instead of zip, I think
    otherwise the import doesn't process the file.
    > The categories I guess are assigned from the information in the
    mef file.
    > At the end of the batch process if you have all metadata in one
    mef file, you'll see a message that has been imported 1 metadata.
    The message is not very accurate, informs about the number of
    files imported, but not about the real number of metadata records
    imported. But querying the catalog should have imported all the
    metadata.
    > Regards,Jose García
    > On Tue, Nov 4, 2014 at 11:58 AM, Jo Cook
    <jocook@anonymised.com <mailto:jocook@anonymised.com>>
    wrote:
    > Hi Eugenio,
    >
    > I'm doing the same thing at the moment. I have had more luck
    using the
    >
    > Geonetwork harvester, which does bring categories across- I have
    an email
    >
    > to the list about how to preserve ownership and groupownership
    though.
    >
    > Jo
    >
    > On Tue, Nov 4, 2014 at 10:50 AM, Eugenio Trumpy
    <frippe12573@anonymised.com <mailto:frippe12573@anonymised.com>>
    >
    > wrote:
    >
    >> Hi all,
    >> I installed a new geonetwork version (2.10.3).
    >> I exported in the old instance all metadata as zip.
    >> I would like to restore in one-shot all the metadata in the new
    geonetwork
    >> maintaining the categories, is it possible?
    >> In the batch import I don't see the zip as possibility for one
    file, is
    >> anyway allowed? and hence is it possible to assign
    >> the categories automatically on import? (of course I created
    the same
    >> category in the new GN instance).
    >> Regards
    >> Eugenio
    >>
    ------------------------------------------------------------------------------
    >> _______________________________________________
    >> GeoNetwork-users mailing list
    >> GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    >> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    >> GeoNetwork OpenSource is maintained at
    >> http://sourceforge.net/projects/geonetwork
    >
    > --
    >
    > *Jo Cook*
    >
    > Astun Technology Ltd, The Coach House, 17 West Street, Epsom,
    Surrey, KT18
    >
    > 7RL, UK
    >
    > t:+44 7930 524 155 <tel:%2B44%207930%20524%20155>
    >
    > iShare - Data integration and publishing platform
    >
    > <http://www.isharemaps.com/&gt;
    >
    > *****************************************
    >
    > Company registration no. 5410695. Registered in England and Wales.
    >
    > Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN
    VAT no.
    >
    > 864201149.
    >
    ------------------------------------------------------------------------------
    >
    > _______________________________________________
    >
    > GeoNetwork-users mailing list
    >
    > GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    >
    > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    >
    > GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork
    >

    --

    *Jean Pommier -- pi-Geosolutions*

    Ingénieur, consultant indépendant

    Tél. : (+33) 6 09 23 21 36 <tel:%28%2B33%29%206%2009%2023%2021%2036>
    E-mail : jp@anonymised.com <mailto:jp@anonymised.com>
    Web : www.pi-geosolutions.fr <http://www.pi-geosolutions.fr>

    ------------------------------------------------------------------------------
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18 7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform <http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales. Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no. 864201149.

--

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp@anonymised.com
Web : www.pi-geosolutions.fr