On Wednesday 19 December 2007 17:48:00 Frank M. Ramaekers wrote:
I just installed Hobbit using yum on a new system, unfortunately I
already had my /home/hobbit structure from the previous system (which
crashed). Well, it appears that yum installed Hobbit quite differently
than I had originally installed.
--------------------- Previously ---------------------------
/home/hobbit/cgi-bin
/cgi-secure
/client
/bin
/etc
/ext
/logs
/tmp
/data
/acks
/data
/disabled
/hist
/histlogs/(various monitored systems)
/hostdata
/logs
/rrd/(various monitored systems)
/server
/bin
/download
/etc
/ext
/tmp
/web
/www
/gifs
/help
/html
/menu
/notes
/rep
/Servers/(various sub pages)
/snap
/wml
/source
/snapshot
/var/log/hobbit
---------------------- Now -------------------------
/etc/hobbit
/usr/libexec/hobbit/cgi-bin
/cgi-secure
/server
/bin
/download
/ext
/var/lib/hobbit
/acks
/data
/disabled
/hist
/histlogs
/hostdata
/logs
/rrd
/tmp
/www
/gifs
/help
/html
/menu
/notes
/rep
/snap
/wml
/var/log/hobbit
It appears that I need to:
#----Copy data
cp -ar /home/hobbit/data/hist/* /var/lib/hobbit/data/hist
cp -ar /home/hobbit/data/histlogs/* /var/lib/hobbit/data/histlogs
cp -ar /home/hobbit/data/rrd/* /var/lib/hobbit/data/rrd
Do this instead:
rsync -avt /home/hobbit/data/ /var/lib/hobbit/data
#----Copy configuration
cp -a /home/hobbit/server/etc/bb-hosts /etc/hobbit
cp -a /home/hobbit/server/etc/hobbit-alerts.cfg /etc/hobbit
cp -a /home/hobbit/server/etc/hobbitlaunch.cfg /etc/hobbit
cp -a /home/hobbit/server/etc/hobbitpasswd /etc/hobbit
#--->Modify existing instead!
#--->cp -a /home/hobbit/server/etc/hobbitserver.cfg /etc/hobbit
Yes, copy as above.
Still run under user hobbit?
Yes. But, the init script should take care of everything.
If so, what directory structure is needed?
Anything else I might be missing?
Paths in (e.g.) hobbitserver.cfg ?
Regards,
Buchan