Moving to SVN from 1.24.0 and back?

Forum for questions and support relating to the 1.24.x releases only.
Locked
kwire
Posts: 48
Joined: Mon Jan 05, 2009 12:56 am
Location: Ada, Ohio, USA

Moving to SVN from 1.24.0 and back?

Post by kwire »

I am currently running version 1.24.0 and I want to update to the SVN version of ZoneMinder.

I am a beginner but I want to be able to switch back to 1.24.0 if I fail miserably in my first SVN attempt, so can somebody review my planned steps?

Note: Both the Apache and MySQL Servers are running and the ZoneMinder Server is stopped.

1 ) Make a MySQL backup of the zm Catalog (database)
2 ) Open a Konsole window.
3 ) Log in as root.
4 ) Navigate to the directory where I installed ZoneMinder 1.24.0 (~/<my_user_name>/Development/ZM/ZoneMinder-1.24.0)
5 ) Execute this:

Code: Select all

make uninstall
6 ) Quit root
7 ) Navigate to ~/<my_user_name>/Development/ZM
8 ) Execute this:

Code: Select all

svn co http://svn.zoneminder.com/svn/zm/trunk zm_svn  (This will put the SVN in ~/<my_user_name>/Development/ZM/zm_svn)
9 ) Navigate to zm_svn (cd zm_svn)
10 ) Execute this:

Code: Select all

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-libarch=lib64 ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local
11 ) login as root
12 ) Execute these:

Code: Select all

make
make install
13 ) Quit root
14 ) Execute this:

Code: Select all

zmupdate.pl -f
15 ) Execute this:

Code: Select all

zmpkg.pl start
Now I probably will never want or need to go back to the original 1.24.0, but just in case I do here are the steps I would follow.

Stop the ZoneMinder server, then do these steps...

1 ) Restore my previous MySQL backup that I made in step 1 above
2 ) Open a Konsole window.
3 ) Log in as root.
4 ) Navigate to the directory where I installed ZoneMinder SVN (~/<my_user_name>/Development/ZM/zm_svn)
5 ) Execute this:

Code: Select all

make uninstall
6 ) Quit root
7 ) Navigate to the directory where I installed ZoneMinder 1.24.0 (~/<my_user_name>/Development/ZM/ZoneMinder-1.24.0)
8 ) Execute this:

Code: Select all

./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-libarch=lib64 ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local
9 ) login as root
10 ) Execute these:

Code: Select all

make
make install
11 ) Quit root
12 ) Execute this:

Code: Select all

zmpkg.pl start
And bingo I should be back to 1.24.0...

Does it look good?

Thanks for your time, Keith
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Re: Moving to SVN from 1.24.0 and back?

Post by curtishall »

Technically you should backup the mysql database prior to installing from SVN:

mysqldump --add-drop-database --create-options -u mysqluser -ppassword zmdatabase >> zm-1.2.4-pre-svn.dump

If you had to revert back to 1.24.0 you should:

Run 'make uninstall' in the 1.24.0-svn tree. Technically _shouldn't_ be needed however if a new file gets throw into svn and not in 1.24.0-stable you don't want extra files laying around

Then 'make install' in the 1.24.0-non-svn tree

And lastly restore the database with mysql -u mysqluser -ppassword zmdatabase < zm-1.2.4-pre-svn.dump

You shouldn't need to run zmupdate.pl -f
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
kwire
Posts: 48
Joined: Mon Jan 05, 2009 12:56 am
Location: Ada, Ohio, USA

Post by kwire »

Thanks Curtis,

Just to be clear when you say
You shouldn't need to run zmupdate.pl -f
you are talking about if you are going back from SVN to Stable correct?

Keith
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post by curtishall »

kwire wrote:Thanks Curtis,

Just to be clear when you say
You shouldn't need to run zmupdate.pl -f
you are talking about if you are going back from SVN to Stable correct?

Keith
Correct..if you need to go back to stable from SVN just make install from 1.24.0 (stable) and restore the database you do not need to run zmupdate.pl -f
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
Locked