Skip to content

Instantly share code, notes, and snippets.

ReS4

Block or report user

Report or block ReS4

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ReS4
ReS4 / db_backup.sh
Created Nov 27, 2018
MySQL database backup and transfer to another server over ssh
View db_backup.sh
#! /bin/bash
apt-get install sshpass -y
# or `yum install sshpass` for centos
DATE=`date +%Y-%m-%d`
DB_USER="user"
DB_PASS="pass"
DB_NAME="db_name"
You can’t perform that action at this time.