This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** | |
| * GitLab Web Hook | |
| * See https://gitlab.com/kpobococ/gitlab-webhook | |
| * | |
| * This script should be placed within the web root of your desired deploy | |
| * location. The GitLab repository should then be configured to call it for the | |
| * "Push events" trigger via the Web Hooks settings page. | |
| * | |
| * Each time this script is called, it executes a hook shell script and logs all | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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` | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # | |
| # Script to create full and incremental backups (for all databases on server) using innobackupex from Percona. | |
| # http://www.percona.com/doc/percona-xtrabackup/innobackupex/innobackupex_script.html | |
| # | |
| # Every time it runs will generate an incremental backup except for the first time (full backup). | |
| # FULLBACKUPLIFE variable will define your full backups schedule. | |
| # | |
| # 2012 Brad Svee modified to try to use xbstream | |
| # (C)2012 Atha Kouroussis @ Vurbia Technologies International Inc. |