Skip to content

Instantly share code, notes, and snippets.

View reina3596's full-sized avatar

Sergio Reina reina3596

View GitHub Profile
@reina3596
reina3596 / mysql-gcs-backup.sh
Created October 28, 2019 17:23 — forked from dwdraju/mysql-gcs-backup.sh
Send MySQL Backup to Google Cloud Storage(GCS)
#!/bin/bash
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
BACKUP_DIR="/home/ubuntu/backup/$TIMESTAMP"
MYSQL_USER="****"
MYSQL=/usr/bin/mysql
MYSQL_PASSWORD="****"
MYSQLDUMP=/usr/bin/mysqldump
mkdir -p "$BACKUP_DIR/"
@dwdraju
dwdraju / mysql-gcs-backup.sh
Last active May 7, 2022 18:04
Send MySQL Backup to Google Cloud Storage(GCS)
#!/bin/bash
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
BACKUP_DIR="/home/ubuntu/backup/$TIMESTAMP"
MYSQL_USER="****"
MYSQL=/usr/bin/mysql
MYSQL_PASSWORD="****"
MYSQLDUMP=/usr/bin/mysqldump
mkdir -p "$BACKUP_DIR/"
@Lazhari
Lazhari / readme.md
Created November 18, 2015 12:02
Use Bitbucket repo with openshift
  1. Clone your repository
$ git clone <bitbucket-repo-url>
  1. Add the remote origin for openshift

Your local clone has then your other repo (bitbucket etc.) as remote repo. Your remote repo is stored with the alias "origin" (the default alias used by git if you clone). You then add the openshift repo as remote to your clone. You do that while explicitly using an alias for the remote repo you add - I'm using "openshift" as alias here: