• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Папка MyUtils


Commit MetaInfo

Revision186e21ac3a3913af1b4f47c672e44ea4580a8dc8 (tree)
Time2011-09-28 14:47:45
AuthorКонстантин Кошкин <catsoft1940@gmai...>
CommiterКонстантин Кошкин

Log Message

Скрипт архивации папки шаблонов

Change Summary

Incremental Difference

diff -r 73d9216077d7 -r 186e21ac3a39 Scripts/1C/Backup/templates.bat
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Scripts/1C/Backup/templates.bat Wed Sep 28 09:47:45 2011 +0400
@@ -0,0 +1,43 @@
1+rem @echo off
2+
3+rem ‘ªà¨¯â ¤«ï  à娢 æ¨¨ ª â «®£  è ¡«®­®¢
4+rem
5+rem  à ¬¥âàë
6+rem %1 - ãâì ª ¡ §¥
7+
8+rem  áâனª¨
9+
10+rem ãâì ª ¨á¯®«­ï¥¬®¬ã ä ©«ã rar
11+set rarexe=e:\base\!!!backup\Rar.exe
12+
13+rem ãâì ª  à娢­®¬ã ª â «®£ã
14+set arcpath=e:\base\!!!backup\templates\
15+
16+rem ˆ¬ï ä ©«  ¢ë£à㧪¨
17+set arcfile=templates
18+
19+rem  áâனª¨ ¯® 㬮«ç ­¨î
20+set default_base=E:\base\˜ ¡«®­ë ¤«ï 1‘\
21+rem ãâì ª ¡ §¥
22+if "%1" == "" (
23+ set base=%default_base%
24+) else (
25+ set base="%1"
26+)
27+
28+rem ƒ¥­¥à æ¨ï ª®­ä¨£ãà æ¨®­­ëå ä ©«®¢ include ¨ exclude
29+
30+rem ãâì ª ª®­ä¨£ãà æ¨®­­ë¬ ä ©« ¬
31+set include=%arcpath%templates.lst
32+set exclude=%arcpath%templates_ex.lst
33+set log=%arcpath%templates.log
34+
35+echo %base%*.* > "%include%"
36+echo %base%*.rar > "%exclude%"
37+echo %base%*.zip >> "%exclude%"
38+echo %base%*_*.sqlite >> "%exclude%"
39+
40+rem ‡ ¯ãcª  à娢 æ¨¨
41+echo %date% %time% ‡ ¯ã᪠ à娢 æ¨¨ è ¡«®­®¢ >> "%log%"
42+%rarexe% a -r -rr -s -agddmmyyyy_hhmm -x@%exclude% "%arcpath%%arcfile%_" @%include%
43+echo %date% %time% Žª®­ç ­¨¥  à娢 æ¨¨ è ¡«®­®¢ >> "%log%"
\ No newline at end of file