본문 바로가기
OS/Windows

windows / CLI / schtasks / backup / script

by 하하IT 2020. 4. 16.

@echo off

rem  날짜포멧만 가지고 변수로 저장 YYYYMMDD형식으로

rem  

rem 아래 형식으로 스케줄에 등록

rem schtasks /create /tn "fb_book_backup_everyday" /tr C:\data\backup.bat /sc daily /st 03:00:00 /sd 2006/01/01

rem

rem 스케줄 삭제

rem schtasks /delete /tn "fb_book_backup_everyday"

rem

rem

setlocal enableextensions

set arcname=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%

 

"C:\Program Files\Firebird\Firebird_2_0\bin\gbak" -v -t -user SYSDBA -password "masterkey" C:\data\BOOKSDB.FDB   C:\data\backup\BOOKSDB_%arcname%.FDB

'OS > Windows' 카테고리의 다른 글

windows 10 / window media player  (0) 2020.04.20
windows / batch script 날짜 date,time  (0) 2020.04.19
windows / CLI / pdf command print  (0) 2020.04.16
windows 10 / Defender off / 디펜더 끄기  (0) 2020.04.16
windows 10 / rufus / 부팅USB  (0) 2020.04.16