Created
February 16, 2016 06:34
-
-
Save ammaridris/3ae890e6ecc7d0a2c3ed to your computer and use it in GitHub Desktop.
Backup MySQL Menggunakan Windows Scheduled Tasks
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
@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