Skip to content

Instantly share code, notes, and snippets.

@ammaridris
Created February 16, 2016 06:34
Show Gist options
  • Save ammaridris/3ae890e6ecc7d0a2c3ed to your computer and use it in GitHub Desktop.
Save ammaridris/3ae890e6ecc7d0a2c3ed to your computer and use it in GitHub Desktop.
Backup MySQL Menggunakan Windows Scheduled Tasks
@echo off
set month=%date:~3,2%
set day=%date:~0,2%
set year=%date:~6,4%
set Srcdir="C:\apps\mysql\data"
set Dstdir="D:\Backup"
echo %year%
xcopy %Srcdir% %Dstdir%\%month%-%day%-%year%-backup\mysqldata\ /h/k/i/s/y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment