This file contains 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
$ ssh -V | |
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016 | |
$ wget https://launchpadlibrarian.net/311137366/openssh-client_7.3p1-1ubuntu0.1_amd64.deb | |
$ wget https://launchpadlibrarian.net/298453050/libgssapi-krb5-2_1.14.3+dfsg-2ubuntu1_amd64.deb | |
$ wget https://launchpadlibrarian.net/298453058/libkrb5-3_1.14.3+dfsg-2ubuntu1_amd64.deb | |
$ wget https://launchpadlibrarian.net/298453060/libkrb5support0_1.14.3+dfsg-2ubuntu1_amd64.deb | |
$ wget https://launchpadlibrarian.net/311137368/openssh-server_7.3p1-1ubuntu0.1_amd64.deb | |
$ wget https://launchpadlibrarian.net/311137369/openssh-sftp-server_7.3p1-1ubuntu0.1_amd64.deb | |
$ sudo dpkg -i libkrb5support0_1.14.3+dfsg-2ubuntu1_amd64.deb | |
$ sudo dpkg -i libkrb5-3_1.14.3+dfsg-2ubuntu1_amd64.deb |
This file contains 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 | |
FREQUENCY=${1:-daily} | |
DB_BACKUP_DIR_ROOT="/root/mysqlbackups/$FREQUENCY" | |
DB_BACKUP_DIR_TODAY="$DB_BACKUP_DIR_ROOT/`date +%Y-%m-%d`" | |
DATESTRING=$(date +%Y.%m.%dT%H-%M-%S) | |
# Create the backup directory | |
mkdir -p $DB_BACKUP_DIR_TODAY |