1 | MONITAS
|
---|
2 | """""""
|
---|
3 |
|
---|
4 | Document last updated: June 19th, 2002
|
---|
5 |
|
---|
6 |
|
---|
7 | WARNING
|
---|
8 | """""""
|
---|
9 |
|
---|
10 | Monitas is alpha-quality code. If it eats you alive, don't blame me. ;)
|
---|
11 | However, please bear in mind that I am writing and testing it on a daily
|
---|
12 | basis and I haven't lost any data yet.
|
---|
13 |
|
---|
14 |
|
---|
15 | INSTALLING
|
---|
16 | """"""""""
|
---|
17 |
|
---|
18 | Monitas will not work unless you install Mondo first. Mondo has its own
|
---|
19 | dependencies which must be fulfilled before it will run, such as Mindi.
|
---|
20 | So, before you even try to install Monitas, please install Mondo. Make
|
---|
21 | sure you are installing the LATEST SNAPSHOT from the website
|
---|
22 | (http://www.mondorescue.com/download.html).
|
---|
23 |
|
---|
24 | Unzip the Monitas tarball (the one you've unzipped in order to read
|
---|
25 | this message). Then, type:-
|
---|
26 |
|
---|
27 | # cd monitas-0.1a
|
---|
28 | # ./make-server info
|
---|
29 | # ./make-client info
|
---|
30 | # mkdir /root/monitas
|
---|
31 | # cp -f client,server /root/monitas
|
---|
32 |
|
---|
33 | (If you have problems later on, repeat the 'make' commands but drop the
|
---|
34 | 'info' parameter from each.)
|
---|
35 |
|
---|
36 |
|
---|
37 | SERVER
|
---|
38 | """"""
|
---|
39 |
|
---|
40 | Because Monitas is alpha-quality code, you should not install it in
|
---|
41 | /usr/sbin or /usr/local/sbin. Instead, run it from /root:-
|
---|
42 | # /root/monitas/server info &
|
---|
43 |
|
---|
44 | To monitor the server, type:-
|
---|
45 | # tail -f /var/log/monitas/monitas-server.log
|
---|
46 |
|
---|
47 | To kill the server, type:-
|
---|
48 | # kill `cat /var/run/monitas-server.pid`
|
---|
49 |
|
---|
50 | CLIENT
|
---|
51 | """"""
|
---|
52 |
|
---|
53 | Then, go to another console and type:-
|
---|
54 | # /root/monitas/client info 127.0.0.1 &
|
---|
55 | Replace '127.0.0.1' with the IP address of the PC on which the server runs.
|
---|
56 |
|
---|
57 | To monitor the client, type:-
|
---|
58 | # tail -f /var/log/monitas/monitas-client.log
|
---|
59 |
|
---|
60 | To kill the client, type:-
|
---|
61 | # kill `cat /var/run/monitas-client.pid`
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 | BACKING UP / COMPARING / RESTORING
|
---|
67 | """"""""""""""""""""""""""""""""""
|
---|
68 |
|
---|
69 | To backup, compare or restore /usr/local, please go to the
|
---|
70 | server's console and type one of these:-
|
---|
71 | # echo "backup 127.0.0.1 /usr/local" > /var/spool/monitas/server-input.dev
|
---|
72 | # echo "compare 127.0.0.1 /usr/local" > /var/spool/monitas/server-input.dev
|
---|
73 | # echo "restore 127.0.0.1 /usr/local" > /var/spool/monitas/server-input.dev
|
---|
74 |
|
---|
75 | To do it while sitting at the client PC, type one of these:-
|
---|
76 | # echo "backup /usr/local" > /var/spool/monitas/client-input.dev
|
---|
77 | # echo "compare /usr/local" > /var/spool/monitas/client-input.dev
|
---|
78 | # echo "restore /usr/local" > /var/spool/monitas/client-input.dev
|
---|
79 |
|
---|
80 | By default, files are restored to /mnt/RESTORING. To restore to the / dir,
|
---|
81 | enter the following at the client's console:-
|
---|
82 | # echo "restore /usr/local /" > /var/spool/monitas/client-input.dev
|
---|
83 | or this on the server's console:-
|
---|
84 | # echo "restore 127.0.0.1 /usr/local /" > /var/spool/monitas/server-input.dev
|
---|
85 |
|
---|
86 |
|
---|
87 | -Hugo
|
---|
88 |
|
---|
89 |
|
---|