- Primary server:
Server containingwebsite data
andmd5sums
and scriptp
- website data:
anything stored at /var/www/html - backup server:
Server containing scripts
- md5sums:
Contains md5sums of all files in website data - t:
monitor interval
- Start execution of
p
first. p
sees no md5sums, ∴ generates one. (p is capable of generating md5sums)- Start execution of
s
s
connects top
s
sees no md5sums with itself, ∴ requests one.md5sums
transferredp
⇨s
- Wait for
t
units of time. p
resendsmd5sums
tos
-
- if new file received and all sums (except sums marked for change) in both files (old and new) match:
ALL OK.
Replace oldmd5sums
with new. - else:
- if new file received and all sums (except sums marked for change) in both files (old and new) match:
-
- if unauthorized change detected:
send emails, raise errors, evacuate city. - else:
Go to step 7
- if unauthorized change detected: