[CentOS] reinventing the wheel? page checker

Les Mikesell

lesmikesell at gmail.com
Thu Jun 21 15:00:54 UTC 2012


On Thu, Jun 21, 2012 at 8:17 AM, Bob Hoffman <bob at bobhoffman.com> wrote:
> Not sure if there is an app like this yet.
> I want to keep tabs on my web applications and thought of using a 'page
> checker'/
>
> I was thinking either running a sum on the directory or each file...but
> thinking a simple date check would
> be fine.
>
> The idea is web application, except the uploads area for photos, never
> has changes to its files except when I change it.
>
> However, if it gets injected or hacked, I would want to know right away.
>
> So thinking of running a script every minute looking for files where the
> date changed since 'x' date or something like that.
>
> Anything out there like that?

One approach is to make the changes on a staging/test server, then
rsync them to the real server.   Then 'rsync -nv --delete' will list
any changed files.   The step beyond that is to commit all changes to
a version control system like subversion, check them out on the
staging box, then push to production with rsync - or update directly
to the tested revision on the production server(s).   The version
control system will have its own commands to show changes from the
repository version.

-- 
   Les Mikesell
    lesmikesell at gmail.com



More information about the CentOS mailing list