Re: command line back up

2020-09-29 Thread Maxim Solodovnik
Good to know :) On Tue, 29 Sep 2020 at 20:16, Ali Alhaidary wrote: > Thank you Max, just moved our live OM server to the new way of folder > separation and then to the newest stable snapshot. Students continued using > moodle as if nothing happened, it was done during break time... > > So many t

Re: command line back up

2020-09-29 Thread Ali Alhaidary
Thank you Max, just moved our live OM server to the new way of folder separation and then to the newest stable snapshot. Students continued using moodle as if nothing happened, it was done during break time... So many thanks... On 9/29/20 12:03 PM, Maxim Solodovnik wrote: On Tue, 29 Sep 20

Re: command line back up

2020-09-29 Thread Maxim Solodovnik
On Tue, 29 Sep 2020 at 15:53, Ali Alhaidary wrote: > Thank you, see my notes embedded please > > On 9/29/20 11:30 AM, Maxim Solodovnik wrote: > > On Tue, 29 Sep 2020 at 15:16, Ali Alhaidary > wrote: > >> This sounds very logical and practical, when new and fresh installation: > >> > >> 1. unzip

Re: command line back up

2020-09-29 Thread Ali Alhaidary
Thank you, see my notes embedded please On 9/29/20 11:30 AM, Maxim Solodovnik wrote: On Tue, 29 Sep 2020 at 15:16, Ali Alhaidary wrote: This sounds very logical and practical, when new and fresh installation: 1. unzip the file to /opt/om_folder yes 2. create /opt/om_folder.data and: yes

Re: command line back up

2020-09-29 Thread Maxim Solodovnik
On Tue, 29 Sep 2020 at 15:16, Ali Alhaidary wrote: > > This sounds very logical and practical, when new and fresh installation: > > 1. unzip the file to /opt/om_folder yes > > 2. create /opt/om_folder.data and: yes > > mkdir -p /opt/om_folder.data/streams/{1,2,3,4,5,6,7,8,9,10,11,12,13,14} th

Re: command line back up

2020-09-29 Thread Ali Alhaidary
This sounds very logical and practical, when new and fresh installation: 1. unzip the file to /opt/om_folder 2. create /opt/om_folder.data and: mkdir -p /opt/om_folder.data/streams/{1,2,3,4,5,6,7,8,9,10,11,12,13,14} mkdir -p /opt/om_folder.data/streams/hibernate mv /opt/om_folder/webapps/open

Re: command line back up

2020-09-29 Thread Maxim Solodovnik
On Tue, 29 Sep 2020 at 14:56, Ali Alhaidary wrote: > > Thank you Max, now things are getting clear. what foldrs will be created > there? > > is it the contents of /opt/om_folder/webapps/openmeetings/data ? yes > > On 9/29/20 10:48 AM, Maxim Solodovnik wrote: > > DATA_DIR should be the folder oth

Re: command line back up

2020-09-28 Thread Maxim Solodovnik
you can add DATA_DIR to JAVA_OPTS On Mon, 28 Sep 2020 at 20:37, Ali Alhaidary wrote: > > so many thanks. in tomcat4, two lines are there: > > export JAVA_OPTS="-Djava.awt.headless=true" > CATALINA_HOME=/opt/om_folder > > would that be good? > > > On 9/28/20 2:08 PM, Maxim Solodovnik wrote: > > Fo

Re: command line back up

2020-09-28 Thread Ali Alhaidary
so many thanks. in tomcat4, two lines are there: export JAVA_OPTS="-Djava.awt.headless=true" CATALINA_HOME=/opt/om_folder would that be good? On 9/28/20 2:08 PM, Maxim Solodovnik wrote: For development I'm starting OM like this JAVA_OPTS="-DDATA_DIR=/home/solomax/work/openmeetings/data" ./b

Re: command line back up

2020-09-28 Thread Maxim Solodovnik
For development I'm starting OM like this JAVA_OPTS="-DDATA_DIR=/home/solomax/work/openmeetings/data" ./bin/catalina.sh jpda run for openmeetings.service start script you can have Environment='JAVA_OPTS=-Djava.awt.headless=true -DDATA_DIR=/opt/omdata5' On Mon, 28 Sep 2020 at 16:53, Ali Alhaida

Re: command line back up

2020-09-28 Thread Ali Alhaidary
And of course, 5. chown . On 9/28/20 12:51 PM, Ali Alhaidary wrote: So many thanks, this would be really so good. Can I do the following: 1. stop OM 2. mv om_folder to om_folder.bak 3. unpack new snapshot to om_folder 4. cp /opt/om_foldr.bak/webapps/openmeetings/WEB-INF/classes/META-INF/

Re: command line back up

2020-09-28 Thread Ali Alhaidary
So many thanks, this would be really so good. Can I do the following: 1. stop OM 2. mv om_folder to om_folder.bak 3. unpack new snapshot to om_folder 4. cp /opt/om_foldr.bak/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml to /opt/om_floder/webapps/openmeetings/WEB-INF/classes/MET

Re: command line back up

2020-09-27 Thread Maxim Solodovnik
You can 1) unpack new snapshot to NEW location 2) set the same DATA_DIR 3) copy your old persistence.xml 3.1***) some other configs might need to be copied 4) start new instance and everything should work as before :) On Sun, 27 Sep 2020 at 12:16, Ali Alhaidary wrote: > Clarification: > > If we

Re: command line back up

2020-09-26 Thread Ali Alhaidary
Clarification: If we replace these files from a downloaded and unzipped #68 snapshot (the html files with the same name) ? On 9/27/20 7:57 AM, Ali Alhaidary wrote: Hi, we are now running snapshot #67, is it OK if we replace only these 4 files: FileItem.java TestExport.java Recording.jav

Re: command line back up

2020-09-26 Thread Ali Alhaidary
Hi, we are now running snapshot #67, is it OK if we replace only these 4 files: FileItem.java TestExport.java Recording.java BackupExport.java And we will be on snapshot #68 ? On 9/27/20 5:37 AM, Maxim Solodovnik wrote: https://issues.apache.org/jira/browse/OPENMEETINGS-2459 please do not us

Re: command line back up

2020-09-26 Thread Maxim Solodovnik
https://issues.apache.org/jira/browse/OPENMEETINGS-2459 please do not use backup/restore for now just re-use previous DB On Sun, 27 Sep 2020 at 07:24, Maxim Solodovnik wrote: > these can be ignored > > others: > [39mDEBUG [0;39m 09-26 10:30:39.827 [36mo.a.o.b.BackupExport:407 [main] > [0;39m -

Re: command line back up

2020-09-26 Thread Maxim Solodovnik
these can be ignored others: [39mDEBUG [0;39m 09-26 10:30:39.827 [36mo.a.o.b.BackupExport:407 [main] [0;39m - Exception While writing node of type: class org.apache.openmeetings.db.entity.file.FileItem javax.xml.bind.MarshalException: null at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(Marsh