Let's start by creating entry for server in docker-compose.yaml:
version: '2'
# version 2 of docker-compose is not "old" version, it's the actual version,
# see below for explanation:
# https://stackoverflow.com/a/53636006/961092
services:| # Empty | |
| # MUST BE LOCATED IN /etc/restic |
Let's start by creating entry for server in docker-compose.yaml:
version: '2'
# version 2 of docker-compose is not "old" version, it's the actual version,
# see below for explanation:
# https://stackoverflow.com/a/53636006/961092
services:| SELECT | |
| c.table_schema, | |
| c.table_name, | |
| c.table_type | |
| FROM | |
| information_schema.tables c | |
| WHERE | |
| c.table_schema NOT IN('information_schema', 'pg_catalog') AND c.table_type = 'BASE TABLE' | |
| AND NOT EXISTS(SELECT i.tablename | |
| FROM pg_catalog.pg_indexes i |
| #!/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` |