30
Май
0
Скрипт для архивации баз данных с датой в имени файла.
set dirbase=D:\SBIS24\bases
set dirbackup=D:\backup
set dat=%date:~6,4%_%date:~3,2%_%date:~0,2%
cd /d %dirbase%
for /F %%i in (‘dir %dirbase%\* /B’) do (
echo %%i
rar a -dh %dirbackup%\%dat%_%%i.rar %%i
)
net use T: \\192.168.1.20\backup
move %dirbackup%\* T:\\bases
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
Subscribe to the RSS feed and have all new posts delivered straight to you.