Backing up Elasticsearch Daily using Elasticdump

I found the Elasticsearch snapshot functionality not very easy to use so once again fell back to using the npm package Elasticdump to complete my Daily Elasticsearch backups. Note: This script relys on you creating new Elasticsearch indexes each day for your Elasticsearch data. See how to do that here. For the purposes of this Read more about Backing up Elasticsearch Daily using Elasticdump[…]

Repairing a Transactional error on a Plone ZODB

NOTE: THIS PROCESS IS DESTRUCTIVE – USE AT YOUR OWN RISK. A nightmare for any Plone administrator.. When restoring your server from a backup or after an unexpected server failure – You receive a message such as below when trying to start your instance: ZODB.FileStorage.FileStorage.CorruptedTransactionError: /opt/plone/zinstance/var/filestorage/Data.fs data record exceeds transaction record at 20055859 This is Read more about Repairing a Transactional error on a Plone ZODB[…]

Protecting a Haproxy backend with basic-auth

For security, this should only be set up as below on an SSL secured site! This feature is useful for being able to restrict access to certain backends within your HAProxy configuration to add an additional layer of authentication (Eg for a development website) Within your Haproxy config (I typically place this at the top Read more about Protecting a Haproxy backend with basic-auth[…]

Script to modify htpasswd without Apache

This is a handy script I have written for an environment where I needed to modify a htpasswd file without Apache being installed on the server (Where openssl is installed). The script first verifies if the new user exists already, if it does it will delete the line containing the username first before creating the Read more about Script to modify htpasswd without Apache[…]