darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

How to upgrade Squidanalyzer 6.5 to 6.6 #166

Closed chek69 closed 6 years ago

chek69 commented 7 years ago

Hello everybody,

I want to upgrade squidanalyzer 6.5 to 6.6 without losing my data . Squidanalyzer is installed on Centos.

Thanks :)

darold commented 7 years ago

Just proceed as usual:

wget https://github.com/darold/squidanalyzer/archive/v6.6.tar.gz  -O squidanalyzer-6.6.tar.gz
tar xzf squidanalyzer-6.6.tar.gz
cd squidanalyzer-6.6/
perl Makefile.PL
make
sudo make install

there is no incompatibilities between these version.

chek69 commented 7 years ago

thank's for your reply, and i'm not going to lose my logs, reports, configuration after installing the new version ?

darold commented 7 years ago

Normaly not, the new configuration file will be installed into /etc/squidanalyzer/squidanalyzer.conf.sample have a look into it to see what have changed, but your /etc/squidanalyzer/squidanalyzer.conf file will not change and so on squid-analyzer behavior. This is just a maintenance release to fix bug.

Note that this doesn't prevent you to make a backup of the data directory before upgrading for security. I'm not bug-proof, so a backup is always a good practice before upgrading, not just only with SquidAnalyzer :-)

chek69 commented 7 years ago

I'm going to make makeup before upgrading, and indeed it's a very good and usefull practice :) Thank you very much.

lravelo commented 7 years ago

I can confirm that the upgrade is as simple as just running the commands that @darold posted.