Data directory

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Data directory

Andreas Böhme
Hello,
I want to put my data directory in another location. Is this possible
after the initial use of geonetwork or will this corrupt my existing
entries ?
What do i have to doexactly, in the docs it just says to add something
to my Catalina_opts. Is that sufficient ?
Thx in advance
Andreas





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

smime.p7s (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Data directory

Paul van Genuchten
Hi Andreas, you can do so using an environment variable or as a Catalina opt, read more at https://geonetwork-opensource.org/manuals/3.8.x/en/maintainer-guide/installing/customizing-data-directory.html <https://geonetwork-opensource.org/manuals/3.8.x/en/maintainer-guide/installing/customizing-data-directory.html>
You will have to copy the contents of your existing data directory to the new location, not to loose information uploaded by users.





> On 5 Dec 2019, at 10:07, Andreas Böhme <[hidden email]> wrote:
>
> Hello,
> I want to put my data directory in another location. Is this possible after the initial use of geonetwork or will this corrupt my existing entries ?
> What do i have to doexactly, in the docs it just says to add something to my Catalina_opts. Is that sufficient ?
> Thx in advance
> Andreas
>
>
>
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Data directory

Jo Cook
In reply to this post by Andreas Böhme
Hi,

My process for doing this in the past without any problems was:

1) COPY the data directory to the new location (so if there are any
problems you can revert)
2) Edit /etc/default/tomcat8 (or anywhere you can add JAVA_OPTS) and
add the following line:
JAVA_OPTS = "{JAVA_OPTS} -Dgeonetwork.dir=/data/geonetwork"
3) Restart geonetwork and check in the admin console -> settings ->
information for the location that the data directory is referring to.
4) If you're on windows you'll need to check how to refer to the
directory (is it driveletter/folder or something like that?)
5) Also check permissions- if it can't write to the new location it
will default to the original

You can find out a lot of debugging issues from the logs when
geonetwork starts up. Once you're happy everything is working
correctly, remove the original data directory.

Hope that helps

Jo

On Thu, Dec 5, 2019 at 9:08 AM Andreas Böhme <[hidden email]> wrote:

>
> Hello,
> I want to put my data directory in another location. Is this possible
> after the initial use of geonetwork or will this corrupt my existing
> entries ?
> What do i have to doexactly, in the docs it just says to add something
> to my Catalina_opts. Is that sufficient ?
> Thx in advance
> Andreas
>
>
>
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



--
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

--
-- 
*Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates> for updates on news,
products, conferences, events and training*
*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK 

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/
twitter:@astuntech <https://twitter.com/astuntech>



iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/>

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/>
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal>





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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Data directory

Andreas Böhme
Thx Jo,

i will try that immediately :)
Cheers
Andreas

Am 05.12.2019 um 10:26 schrieb Jo Cook:

> Hi,
>
> My process for doing this in the past without any problems was:
>
> 1) COPY the data directory to the new location (so if there are any
> problems you can revert)
> 2) Edit /etc/default/tomcat8 (or anywhere you can add JAVA_OPTS) and
> add the following line:
> JAVA_OPTS = "{JAVA_OPTS} -Dgeonetwork.dir=/data/geonetwork"
> 3) Restart geonetwork and check in the admin console -> settings ->
> information for the location that the data directory is referring to.
> 4) If you're on windows you'll need to check how to refer to the
> directory (is it driveletter/folder or something like that?)
> 5) Also check permissions- if it can't write to the new location it
> will default to the original
>
> You can find out a lot of debugging issues from the logs when
> geonetwork starts up. Once you're happy everything is working
> correctly, remove the original data directory.
>
> Hope that helps
>
> Jo
>
> On Thu, Dec 5, 2019 at 9:08 AM Andreas Böhme <[hidden email]> wrote:
>> Hello,
>> I want to put my data directory in another location. Is this possible
>> after the initial use of geonetwork or will this corrupt my existing
>> entries ?
>> What do i have to doexactly, in the docs it just says to add something
>> to my Catalina_opts. Is that sufficient ?
>> Thx in advance
>> Andreas
>>
>>
>>
>> _______________________________________________
>> GeoNetwork-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
>> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
>
>
--
--------------------------------------------------------------------------------------------
                                               
Andreas Böhme
Techniker/Technician
Landschaftsökologie/Computational Landscape Ecology
                               
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Helmholtz Centre for Environmental Research GmbH - UFZ
Permoserstraße 15, 04318 Leipzig, Germany
Phone +49 341 235 1058
[hidden email], www.ufz.de

Sitz der Gesellschaft/Registered Office: Leipzig
Registergericht/Registration Office: Amtsgericht Leipzig
Handelsregister Nr./Trade Register Nr.: B 4703
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: N.N.
Wissenschaftlicher Geschäftsführer/Scientific Managing Director:
Prof. Dr. Georg Teutsch
Administrative Geschäftsführerin/Administrative Managing Director:
Dr. Sabine König

Vermeiden Sie unnötige Ausdrucke./Think before printing.

Informationen aus der Wissenschaft (z.B. Veranstaltungshinweise, Projektangaben, Publikationen,
Bücher)

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




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

smime.p7s (7K) Download Attachment