From a previous post we've Setup a 3 Node MongoDB Replica Set Cluster [https://sysadmins.co.za/setup-a-3-node-mongodb-replica-set-on-ubuntu-16/], and in this post we will go through the steps of backing up a database and restoring it to another
Scripting
A collection of 5 posts
Bash Script to Parse and Analyze Nginx Access Logs
I wanted a quick way to analyze nginx access logs from the command line, where I only wanted to see the following: * Top 10 Request IP's (from the current Access Log) * Top Request Methods (From the Current Access
Bash Script setup a 3 Node Hadoop Cluster on LXC Containers
Just a quick post on setting up a 3 Node Hadoop Cluster on LXC Containers Instructions: Once the setup has completed, and you ssh to the master node, it will format hdfs and start the daemons, this section was configured
Ingest MongoDB Items into Elasticsearch
I was working on a personal project where I needed some way to to save URL's / Bookmarks of websites that I come across that I would like to reference at a later time. I eventually decided to develop
Creating a BASH init startup script
Create a simple bash init script, and pass the arguments to stop or start a process. In this example we will use the init script to control tcpdump. Pre-Requisites: Create, and apply permissions. $ touch /etc/init.d/tcpmonitor $ chmod +x
Subscribe to Sysadmins
Subscribe today and get access to a private newsletter and new content every week!