Skip to content

Instantly share code, notes, and snippets.

View awaddell's full-sized avatar

Alastair Waddell awaddell

View GitHub Profile
@awaddell
awaddell / storeImgInMongoWithMongoose.js
Last active June 19, 2016 13:40 — forked from aheckmann/storeImgInMongoWithMongoose.js
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express')
, http = require('http');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var request = require('request');
@awaddell
awaddell / README.md
Last active February 15, 2016 15:14 — forked from oodavid/README.md
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc