I have a home-grown solution. Set up two identical servers (server1 and 2) and 
install DSpace on both of them. Server 1 is the main DSpace instance, server 2 
the secondary. 
Make sure that both servers can talk to each without having to log in. Once 
that's working, do the following.  Enter data on server 1 only. At the end of 
the day (or whenever) run a script that does this:
1.  On server 1, make a database dump of the Postgres database and store it in 
a directory called backups. Add something like this code to your cron job:
> /usr/bin/pg_dump --host "localhost" --port "5432" --username "postgres" 
> --role "postgres" --no-password dspace | gzip > "/home/user/backups/$(date 
> +%Y%m%d)_dspace.sql.gz"

2. From server 2 run rsync to copy the backed up database and all new 
bitstreams from server 1 to 2.
> rsync -av server1:/home/user/backups /dspace (database)
> rsync -av server1:/dspace/assetstore /dspace/assetstore/ (bitstreams)

3. Uncompress the backed up database.
> gunzip $(date +%Y%m%d)_dspace.sql.gz

4. Stop the current dspace database on server 2.
> psql -U postgres --no-password -c "select 
> pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where 
> datname='dspace'"

5. Delete the dspace database.
> dropdb -U postgres dspace

7. Create a new dspace database.
> createdb -U postgres --owner=dspace --encoding=UNICODE dspace

8. Import the database into the database server running on server 2.
psql -U postgres --no-password dspace < $(date +%Y%m%d)_dspace.sql


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] 
Sent: Monday, January 19, 2015 4:20 AM
To: [email protected]
Subject: DSpace-tech Digest, Vol 105, Issue 41

Send DSpace-tech mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/dspace-tech
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of DSpace-tech digest..."


Today's Topics:

   1. DSpace crashes during the file upload process (Shixing Wen)
   2. Dspace mirroring (Sila Too)
   3. Problem faced in bitstream description section (Iyer M)
   4. XMLUI theme matching problem (Hilton Gibson)


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

Message: 1
Date: Fri, 16 Jan 2015 14:32:31 -0600
From: Shixing Wen <[email protected]>
Subject: [Dspace-tech] DSpace crashes during the file upload process
To: [email protected]
Message-ID:
        <cabf-cs7672r9slcngjm65c5nh15dhqptt-mgxz6zeti0_yb...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

DSpace 4.1 jspui

Our DSpace instance crashes quite often during the file upload process. It 
happens most at the stage of file upload but it also occurs at the stage of "I 
grant the license".

Any clue to resolve this issue?

Thanks,

Shixing
-----------------------------------------------
Shixing Wen
Head of Technical Services
Kathryn A. Martin Library
University of Minnesota Duluth
416 Library Drive
Duluth, MN 55812

218-726-8498
[email protected]
------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Sun, 18 Jan 2015 11:30:06 +0300
From: Sila Too <[email protected]>
Subject: [Dspace-tech] Dspace mirroring
To: "[email protected]"
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hello AllI would like to mirror more than two Dspace servers together. Any idea 
on how to go about it?S. Too                                      
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 3
Date: Mon, 19 Jan 2015 12:55:20 +0530
From: Iyer M <[email protected]>
Subject: [Dspace-tech] Problem faced in bitstream description section
To: dspace-tech <[email protected]>,
        "[email protected]"
        <[email protected]>
Message-ID:
        <CAKsvMRJaCDDZzXQKzGh9G6gHNgNMaKozCCZDJ=xg_drqjy4...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Dear Community,

We are using DSpace 4.2 JSPUI. Our server got shutdown due to un anticipated 
power cut and backup failure in an abrupt mode.

Now we are not able to see following at bottom of Item page ("File in this 
Item" section):

File
Description
Size
Format
View/Open Button

Except for "View/Open Button" rest of labels are appearing but value for each 
of parameter along with "View/Open Button" is not appearing.

You are requested to suggest, what corrections should be done for restoring the 
earlier state of solution.

We are using DSpace on RHEL OS.

Thanks in advance.

Iyer
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 4
Date: Mon, 19 Jan 2015 11:19:34 +0200
From: Hilton Gibson <[email protected]>
Subject: [Dspace-tech] XMLUI theme matching problem
To: dspace-tech <[email protected]>
Message-ID:
        <CAAV1Wv4oH7T8zsxpdQ-yoaEDjoZVj76-E28=p1qf9a-vrgy...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi All

I am trying to "colourise" our faculty communities.
See: http://scholar.sun.ac.za
Here is the faculty palette:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Theme/Color_Palette
Attached is my "xmlui.xconf" file.

The XMLUI does not seem to obey the "colourisation".
I have tried the following to remedy this:
1. Sort faculty handles ascending and descending in the "xmlui.xconf".
2. For all themes, disable the browser caching in the "sitemap.xmap" files.

I have installed the "cache killer" app in my Google Chrome browser to test if 
this is a cache problem. I have also reset the "java cache" in the XMLUI admin 
control panel to do testing.

The page metadata correctly displays the theme name and path.
See: http://scholar.sun.ac.za/?XML and
http://scholar.sun.ac.za/handle/10019.1/1?XML

I simply cannot find a cause, why the theme colour is not obeyed strictly per 
faculty.
Any help appreciated. Depending on the responses to this question on the list, 
I may submit a bug report.

This is supposed to be one the big selling points of the XMLUI, the ability to 
theme communities and collections etc..., but for me it does not work ;-(

I suspect something in the following code is not robust.
See:
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/ThemeMatcher.java

Cheers

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025C
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlui.xconf
Type: application/octet-stream
Size: 10552 bytes
Desc: not available

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

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet

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

_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech


End of DSpace-tech Digest, Vol 105, Issue 41
********************************************


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to