工做中用到的一些批處理

SVN項目文件完整備份,將項目文件分別備份到了兩個地方,一個是本地硬盤,另外一個是局域網上的另一臺服務器共享目錄上。服務器

SET repo_code_dir=D:\Repositories\項目代碼
SET backup_dir=E:\svnbackup\Repositories\all\%date:~0,4%%date:~5,2%%date:~8,2%
SET backup_remotedir=\\xx.xxx.xxx.xxx\svnbackup\Repositories\all\%date:~0,4%%date:~5,2%%date:~8,2%
if not exist %backup_dir% md %backup_dir%
svnadmin hotcopy %repo_code_dir% %backup_dir%\項目代碼
net use \\xx.xxx.xxx.xxx\svnbackup Mypassword /user:bakuser
if not exist %backup_remotedir% md %backup_remotedir%
svnadmin hotcopy %repo_code_dir% %backup_remotedir%\項目代碼

若是是增量備份,則後面加上「--incremental」參數,例如:less

svnadmin hotcopy %repo_code_dir% %backup_incre_dir%\項目代碼 --incremental

 

maven本地註冊jar包socket

mvn install:install-file -DgroupId=com.lowagie -DartifactId=itext -Dversion=2.1.7.js2 -Dpackaging=jar -Dfile=%CD%\itext-2.1.7.js2.jar

 

 

OpenOffice服務啓動maven

cd d:\Program Files (x86)\OpenOffice 4\program
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
相關文章
相關標籤/搜索