Skip to content

Instantly share code, notes, and snippets.

View kolkov's full-sized avatar

Andrey Kolkov kolkov

View GitHub Profile
@morrissinger
morrissinger / application-controller.js
Created June 3, 2015 00:46
Angular 1 with ECMAScript 6, JSPM, and SystemJS
export class ApplicationController {
constructor() {
this.foo = 'bar';
}
}
@jmfederico
jmfederico / run-xtrabackup.sh
Last active February 6, 2024 08:52
Script to create full/incremental backups with xtrabackup.
#!/bin/sh
TMPFILE="/tmp/xtrabackup-runner.$$.tmp"
USEROPTIONS="--user=${MYSQL_USER} --password=${MYSQL_PASSWORD} --host=${MYSQL_HOST}"
BACKDIR=/srv/mysql-bak
BASEBACKDIR=$BACKDIR/base
INCRBACKDIR=$BACKDIR/incr
FULLBACKUPCYCLE=604800 # Create a new full backup every X seconds
KEEP=1 # Number of additional backups cycles a backup should kept for.
START=`date +%s`