@echo off chcp 65001 @rem ========================================= @rem 設定與備份 @rem ========================================= set CUR_DAY=%date:~11,2% set START_DATETIME="%date% %time%"
set DB_NAME=exam2018_api set DATA_DEST_ROOT_PATH=D:/TQE_backup/TQE_SERVER/DB_BAK/ set DATA_DEST_FOLDER_PATH=%DATA_DEST_ROOT_PATH%%CUR_DAY%/ set DATA_DEST_FILE_NAME=%DB_NAME%_db__D%date:~11,2%
cd /d %DATA_DEST_ROOT_PATH%
if not exist "%DATA_DEST_FOLDER_PATH%/"mkdir %CUR_DAY%
set CUR_DAY=%date:~11,2% set START_DATETIME="%date% %time%"
set DATA_SOURCE_PATH=C:/xampp/htdocs/exam2018* set DATA_DEST_ROOT_PATH=D:/TQE_backup/TQE_SERVER/WEB_BAK/ set DATA_DEST_FOLDER_PATH=%DATA_DEST_ROOT_PATH%%CUR_DAY%/ set DATA_DEST_FILE_NAME=exam_web__D%date:~11,2%
cd /d %DATA_DEST_ROOT_PATH%
if not exist "%DATA_DEST_FOLDER_PATH%/"mkdir %CUR_DAY%
cd /d %DATA_DEST_FOLDER_PATH% && "C:\Program Files\7-Zip\7z" a -t7z -mx9 %DATA_DEST_FILE_NAME%.7z -p"ej;2u,654yji4j06t/6vu;" -mhe "%DATA_SOURCE_PATH%"
@echo off chcp 65001 @rem ========================================= @rem 設定與備份 @rem =========================================
set CUR_DAY=%date:~11,2% set START_DATETIME="%date% %time%"
set DATA_SOURCE_PATH=D:/掃描文件/ set DATA_DEST_ROOT_PATH=D:/TQE_backup/OES_DATA/掃描文件/ set DATA_DEST_FOLDER_PATH=%DATA_DEST_ROOT_PATH%%CUR_DAY%/ set DATA_DEST_FILE_NAME=掃描文件_data__D%CUR_DAY%
cd /d %DATA_DEST_ROOT_PATH%
if not exist "%DATA_DEST_FOLDER_PATH%/"mkdir %CUR_DAY%
"C:\Program Files\7-Zip\7z" a -t7z -mx=0 -v1024m "%DATA_DEST_FOLDER_PATH%%DATA_DEST_FILE_NAME%.7z" -p"ej;2u,654yji4j06t/6vu;" -mhe "%DATA_SOURCE_PATH%"