1

Тема: Резервное копирование сервера Domino по расписанию

Файл lotus backup.bat размещаем на сервере и запускаем по расписанию - с кодом:

@echo Off
net stop "Lotus Domino Server (LotusDominoData)"

Net Time \\%computername% >> %TEMP%\maintnce.log
Echo Begining Fixup of Databases >> %TEMP%\maintnce.log
REM C:\Notes is the Notes program directory, need to specify full path to the Notes program directory
REM You must run nfixup before running compact or updall in case the server is in hang state, you need to
REM run fixup to clean up all the abnormally terminated databases
D:\Lotus\Domino\nfixup

Net Time \\%computername% >> %TEMP%\maintnce.log
Echo Begining Compact of Databases >> %TEMP%\maintnce.log
REM Where C:\Notes is the Notes program directory
D:\Lotus\Domino\ncompact -b
::rem ncompact domlog.nsf

Sleep 150

REM
REM Restarting the Lotus Domino Server after it has finished the above task would be as follows without the REM
REM To re-start Notes server, where C:\Notes is the Notes program directory
REM C:\Notes nserver

REM The following lines are used to re-start Notes server as NT services.  So you
REM can use the above command or the following commands depending on if
REM your Notes server is setup as NT services or not

::call D:\Lotus\Domino\backup.bat

Net Time \\%computername% >> %TEMP%\maintnce.log
Echo BackUp start Domino Server >> %TEMP%\maintnce.log

del D:\backup01.rar
C:\WinRAR\Rar.exe a -m5 D:\backup01.rar @backuplist.lst

del D:\Backup\backup05.rar
ren D:\Backup\backup04.rar backup05.rar
ren D:\Backup\backup03.rar backup04.rar
ren D:\Backup\backup02.rar backup03.rar
ren D:\Backup\backup01.rar backup02.rar
::xcopy D:\backup01.rar D:\Backup\

Net Time \\%computername% >> %TEMP%\maintnce.log
Echo BackUp finish Domino Server >> %TEMP%\maintnce.log

::ping -n 1 -w 100000 192.168.254.254 >nul

net start "Lotus Domino Server (LotusDominoData)"
xcopy D:\backup01.rar D:\Backup\

REM Note you would need to comment out with a REM statement the shutdown process

exit


И файл backuplist.lst  -  список папочек для бэкапов:

D:\Lotus\Domino\*.*
D:\Lotus\Domino\_uninst
D:\Lotus\Domino\_uninst2
D:\Lotus\Domino\domino_icc
D:\Lotus\Domino\jvm
D:\Lotus\Domino\license
D:\Lotus\Domino\ndext
D:\Lotus\Domino\osgi
D:\Lotus\Domino\properties
D:\Lotus\Domino\TTFonts
D:\Lotus\Domino\xmlschemas
D:\Lotus\Domino\xsp
D:\Lotus\Domino\data\*.*
D:\Lotus\Domino\data\dfc
D:\Lotus\Domino\data\docobor\*.*
D:\Lotus\Domino\data\domino
D:\Lotus\Domino\data\ftdomain.di
D:\Lotus\Domino\data\gtrhome
D:\Lotus\Domino\data\help
D:\Lotus\Domino\data\IBM_TECHNICAL_SUPPORT
D:\Lotus\Domino\data\iNotes\*.*
D:\Lotus\Domino\data\mail\idrecove.nsf
D:\Lotus\Domino\data\mail\newidrec.nsf
D:\Lotus\Domino\data\properties
D:\Lotus\Domino\data\modems
D:\Lotus\Domino\data\rmeval
D:\Lotus\Domino\data\schema.ft
D:\Lotus\Domino\data\W32

Поделиться