Skip to content

Instantly share code, notes, and snippets.

View Kinaan's full-sized avatar

Kinaan Khan Sherwani Kinaan

  • Lahore, Pakistan
View GitHub Profile
@Kinaan
Kinaan / Gemfile
Created December 4, 2022 21:29 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@Kinaan
Kinaan / README.md
Last active February 22, 2016 10:20
MySQL Backup and s3 upload from slave server

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3. This is an extended version of the original script.

This script will be run on the slave server and expects that the s3cmd is already installed on the system.

Extensions to the Original Script

  1. Stop and Start slave before and after database dump respectively
  2. Remove old backup ( based on the value in rotate variable )