wkhtmltoimage is a tool that I found to be quite useful when producing screendumps of websites. The homepage may be found here. I'm using it on several servers and have not had any difficulties yet.
With newer versions there are almost no system prerequisites. Depending on the distribution you may have to install one or two X11 libraries to get the fonts right. For example some users reported that they had to install urw-fonts
or libx11-dev
. Otherwise the static binary runs out of the box, tested on Ubuntu, RHEL and Arch Linux.
Usage in the simplest case amounts to just "wkhtmltoimage [input file] [output file]
" where the input file can either be a web address or a local html file. Additionally the application comes with a lot of optional parameters which include e.g. disabling JavaScript, using custom style sheets or even modifying cookies.
There is also a version that produces PDF instead of images called wkhtmltopdf. It can be found on the same website.
Linux has a nifty little tool called rsync that should be available on the distribution of your choice (provided it was updated at least once since the stone age). From the man pages:
Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use.
So rsync is perfect for the job of keeping folders on different machines up to date. The proposed solution uses a central server approach looks as follows:
Caveats: