¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 12°Ç
   
XCOPY¸¦ ÀÌ¿ëÇÑ ³×Æ®¿öÅ© µå¶óÀÌºê ¹é¾÷ - BATCH ÆÄÀÏ
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-03-04 (±Ý) 11:08 Á¶È¸ : 10681
±ÛÁÖ¼Ò :
                          

@echo off
:: ³×Æ®¿öÅ© µå¶óÀ̺꠿¬°á
net use Z: \\backup.chonnom.com\MOJILY PASSWORD /user:MOJILY

:: Æú´õ¸í = ³¯Â¥_½Ã°£
SET folder="%date:~0,4%-%date:~5,2%-%date:~8,2%_%time:~0,2%%time:~3,2%"

:: ¹é¾÷¸í·É¾î
set backupcmd=xcopy /s /c /d /e /h /i /r /k /y
 
:: ¹é¾÷¼Ò½º Æú´õ
set source_dir=D:\webdata
 
:: ³×Æ®¿öÅ© µå¶óÀ̺ê
set backup_drive=Z:\

echo ### Backing up Directory
%backupcmd% "%source_dir%" "%backup_drive%\%folder%"

echo Backup Complete!

:: ³×Æ®¿öÅ© µå¶óÀÌºê ¿¬°áÇØÁ¦
net use Z: /del /yes
@pause

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.