复制代码 代码如下:
@echo off
rsync -ztruvoglp --progress --password-file=jb51.secrets /cygdrive/g/wwwroot/jb51/ jb51@114.80.*.*::jb51
复制代码 代码如下:
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid
# Module definitions
# Remember cygwin naming conventions : c:/work becomes /cygwin/c/work
#
[bigdown]
path = /cygdrive/f/webroot/bigdown
read only = false
transfer logging = yes
auto user=wtjb51
secrets file=wtjb51.conf
复制代码 代码如下:
wtjb51:
复制代码 代码如下:
@echo off
for /f "usebackq" %%i in (`"tasklist|find /c "cygrunsrv.exe""`) do (
set chkstat=%%i
)
if %chkstat% == 0 (
del "D:/Program Files/cwRsyncServer/rsyncd.pid" /f
net start RsyncServer
echo ================ >> %date:~0,10%.log
echo %date% %time% check rsync service stop >> rsync%date:~0,10%.log
echo restart rsync service! >> %date:~0,10%.log
echo ================ >> %date:~0,10%.log
)
复制代码 代码如下:
@echo off
for /f "usebackq" %%i in (`"tasklist|find /c "ServUDaemon.exe""`) do (
set chkstat=%%i
)
if %chkstat% == 0 (
net start Serv-U
echo ================ >> %date:~0,10%.log
echo %date% %time% check Serv-U service stop >> %date:~0,10%.log
echo restart Serv-U service! >> %date:~0,10%.log
echo ================ >> %date:~0,10%.log
)
复制代码 代码如下:
echo y net stop SQLSERVERAGENT
echo y net stop mssqlserver
net start mssqlserver
net start SQLSERVERAGENT
复制代码 代码如下:
DUMP TRANSACTION [jb51] WITH NO_LOG
BACKUP LOG [jb51] WITH NO_LOG
DBCC SHRINKDATABASE([jb51])
复制代码 代码如下:
net stop RsyncServer
shutdown /r /f
复制代码 代码如下:
del rsyncd.pid
C:/WINDOWS/system32/shutdown.exe /r /f
新闻热点
疑难解答