Skip to content

Instantly share code, notes, and snippets.

View anish137i's full-sized avatar
💭
anishmandal.in

Anish Mandal anish137i

💭
anishmandal.in
View GitHub Profile
@anish137i
anish137i / mysql-backup-windows.bat
Last active November 17, 2017 05:09 — forked from sindresorhus/mysql-backup-windows.bat
Backup MySQL databases in separate gzipped sql files on Windows
@echo off
REM Following Script will fow on Windows 10
REM Design to take XAMPP MYSQL Backup
REM LAST UPDATE on 17-11-2017
set dbUser=root
set dbPassword=
set backupDir="E:\Backup\"
set mysqldump="E:\xampp\mysql\bin\mysqldump.exe"
set mysqlDataDir="E:\xampp\mysql\data"
@anish137i
anish137i / GIT DB Export Hook
Last active December 11, 2022 11:58 — forked from glauckner/GIT DB Export Hook
Git pre commit hook to export database
#!/bin/bash
DBUSER="root"
DBPASS=""
DB="test"
SCHEMAPATH="__sql"
if [ ! -d "$SCHEMAPATH" ]; then
mkdir $SCHEMAPATH
if [ "$(uname)" == "Darwin" ]; then