SVN Offsite Backup Script : Secure offsite backup solution for SVN to Amazon S3

Tweet Hi there! Backing up your code repository is important. Backing up your code repository to an off-site location in a secure manner is imperative. Throughout our travels and experience utilizing the SVN code repository system, we have developed a quick bash script to export the entire SVN repository, encrypt it, compress it into an [...] Read More

SVN Pre Commit Hook : Sanitize your Code!

Tweet Hello, Dealing with several different development environments can be tricky. With SVN specifically, it is ideal to have some “pre-flight” checks in order to make sure some basic standards have been followed. Some of the things you would want to check might be : - Does the code generate a fatal PHP error? - [...] Read More

Add your Dynamic IPs to Apache HTACCESS files

Tweet Hello! We threw together a quick & simple script to dynamically update your .htaccess files within apache to add your dynamic IP address to the allow / deny fields. If you’re looking to password protect an admin area (for example) but your office only has a dynamic IP address, then this script might be [...] Read More

Automated Amazon EBS snapshot backup script with 7 day retention

Tweet Hello there! We have recently been implementing several different backup strategies for properties that reside on the Amazon cloud platform. These strategies include scripts that incorporate s3sync and s3fs for offsite or redundant “limitless” backup storage capabilities. One of the more recent strategies we have implemented for several clients is an automated Amazon EBS [...] Read More

Massive Amazon Route53 API Bind Zone Import Script

Tweet Hello there, Occasionally some of our managed services work has us dealing directly with other cloud providers such as Amazon. One of our clients set a requirement to migrate over 5,000 domain’s to Amazon’s Route53 DNS service. There was little doubt that this could be automated, but since we have never done this massive [...] Read More

Checking and repairing mysql replication automatically

Tweet Hello! MySQL replication has been known to easily break, as a result of a large multitude of potential causes. Sometimes the replication can even break if an erroneous query is executed on the master server. With all the potential issues that may break replication, we thought it prudent to write an automated check script [...] Read More

Clone a XEN VPS server that resides on a LVM / Logical Volume Manager

Tweet Hello! We thought it would be important to share this information as it might be interesting to someone who wants to replicate the same VPS across many instances in order to create a farm of web servers (for example). This uses very similar concepts to our LVM XEN backup post a while back. Step [...] Read More

Varnish Caching with Joomla

Tweet Hello There! One of the exciting new technologies to come out in the last few years is a tremendously efficient and dynamic caching system called Varnish (see : http://www.varnish-cache.org). We have been employing the use of Varnish for high traffic websites for the purposes of user experience improvements as well as for redundancy and [...] Read More

Centralized remote backup script with SSH key authentication

Tweet Greetings, It has been a while since we posted any useful tidbits for you , so we have decided to share one of our quick & dirty centralized backup scripts. The script relies on ssh key based authentication, described here on this blog. It essentially parses a configuration file where each variable is separated [...] Read More

Remove mail headers in Postfix outgoing mail

Tweet This post is intended for people who want to set up Postfix to remove specific headers within emails that pass through their systems. The most common use for this is to set up a relaying server that will remove any reference of where source emails originated and relevant information about the sender’s computer. Another [...] Read More

Automatically Deploy Debian Firewalls with bash scripting

Tweet Automation is as necessary as any other aspect of systems administration in any critical or production environment where growth and scalability are moving at a significant pace. Growth in any organization is obviously a good thing. In the systems administrator’s perspective, however, growth can mean more time spent deploying systems and less time spent [...] Read More

Relay Exim mail to google mail in Debian Linux

Tweet Sometimes its necessary to relay your mail through a third party provider. If your server environment has a dedicated sendmail server (most do), then this scenario is applicable to you. It is ideal to centralize your outgoing mail to one server so that changes, policies and configuration is located in a single place. In [...] Read More