1 How to do an upgrade on Windows?
2 --------------------------------
4 Please read all this note before executing something, so you can understand all the process.
9 1. Rename the c:\jffnms folder to jffnms-old
10 2. Rename the new jffnms version folder (like c:\jffnms-0.7.3) to c:\jffnms
11 3. Copy your c:\jffnms-old\rrd folder to c:\jffnms\rrd
12 4. Copy the c:\jffnms-old\rrdtool.exe and nmap.exe to c:\jffnms\
13 5. Re-apply the permissions, give the jffnms user FULL CONTROL over c:\jffnms
15 6. At this point you have the new version in place with your old version data.
16 The only thing missing is a correct configuration. You have to go to your setup.php
17 and reconfigure everything like you did when you first install it. (Step 3)
20 Step 2 - Database Update:
21 =========================
23 You have to send every file in the c:\jffnms\docs\upgrade\mysql to the mysql daemon :
25 1. Backup in case of failure:
26 c:\> c:\mysql\bin\mysqldump.exe --opt -u root jffnms > c:\jffnms.backup.mysql
28 2. Go to the DB upgrade folder
29 c:\> cd \jffnms\docs\upgrade\mysql
31 3. Replace OLD with your current JFFNMS version number (like 0.7.2) and NEW with the new version number (like 0.7.3)
32 c:\jffnms\docs\upgrade\mysql> dir jffnms-OLD-to-NEW* (look at all the file names)
34 4. Apply the DB changes
35 c:\jffnms\docs\upgrade\mysql> c:\mysql\bin\mysql.exe -u root jffnms < <Put every Filename here>
37 or, as suggested by Michael Mayers:
40 for /f "tokens=*" %%i in ('dir jffnms* /b') DO c:\mysql\bin\mysql.exe -u root jffnms < %%i
43 for /f "tokens=*" %i in ('dir jffnms* /b') DO c:\mysql\bin\mysql.exe -u root jffnms < %i
46 Step 3 - Check Everything:
47 ==========================
49 Go to your setup in http://yourserver/admin/setup.php (put the correct path here).
51 Check if everything is ok, and Save the configuration.
54 -----------------------------------------------------
55 If you have any other note you will like added here,
56 please send it to the mailing list.