Rotate send IP’s in Exim

This script will roatate sender IP’s each 100 mail’s.

Also you can contact me via mail [email protected]

Posted in Linux Post, Scripting | Leave a comment

MongoDB Backup Script (Simple)

A second version of MongoDB script. It’s more easys to use it. And can be used only for 1 DB.

Also you can contact me via mail [email protected]

Posted in Linux Post, Scripting | Leave a comment

MongoDB Backup Script

Here you can find a very good script for MongoDB

Also you can contact me via mail [email protected]

Posted in Linux Post, Scripting | Leave a comment

Install ngx_pagespeed (Google PageSpeed) with VestaCP

Move to root dir.

Install additional software

Then download the module and extract it

The next step is to download PSOL utils and extract them

No move again to root folder

Download and extract Nginx

Now we will add custome repos to install gcc 4.8

Now tipe and save the output we will build nginx from the same output

enter in directory with installed nginx and run configure with output recieved below

You can recieve next error

I have fixed it with next trick

Then run

In Vesta we should edit next templates

And add  before:

Next Rows

Then you need to reswitch sites templates

Thats all

Posted in CentOS, Hosting, Linux Post | Leave a comment

Amazon (AWS) Ec2 automatic SnapShot

Bash script for Automatic EBS Snapshots and Cleanup on Amazon Web Services (AWS)

How it works: ebs-snapshot.sh will:

  • Determine the instance ID of the EC2 server on which the script runs
  • Gather a list of all volume IDs attached to that instance
  • Take a snapshot of each attached volume
  • The script will then delete all associated snapshots taken by the script that are older than 7 days

REQUIREMENTS

IAM User: This script requires that new IAM user credentials be created, with the following IAM security policy attached:

AWS CLI: This script requires the AWS CLI tools to be installed.

First, make sure Python pip is installed:

Then install the AWS CLI tools:

Once the AWS CLI has been installed, you’ll need to configure it with the credentials of the IAM user created above:

Install Script: Download the latest version of the snapshot script and make it executable:

Then put the code in ams_snapshot.sh

next

You should then setup a cron job in order to schedule a nightly backup. Example crontab jobs:

To manually test the script:

Posted in CentOS, Debian, Hosting, Linux Post, RHEL, Scripting, Ubuntu | Leave a comment