Bir dizindeki 6 günden eski dosyaların silinmesi:
cd \
e:
cd BACKUP
cd dump
forfiles /S /P E:\BACKUP\dump /C "cmd /c del @file /Q" /D -5
echo %date%_%time > e:\backup\dump\eski_backup_temizle_%date%_%TIME%_log.txt
Oracle Export Script:
echo off
set BPATH=E:\BACKUP\dump
set LPATH=E:\BACKUP\dump\log
set SID=DB
exp system/password@%SID% file=%BPATH%\%SID%_%date%.dmp log="%LPATH%\%SID%_%date%.log" FULL=Y STATISTICS=NONE
Oracle Sql Çalıştırma Scripti:
echo on
set SID=DB
sqlplus system/password@%SID% @E:\BACKUP\lisans.sql
cd \
e:
cd BACKUP
cd dump
forfiles /S /P E:\BACKUP\dump /C "cmd /c del @file /Q" /D -5
echo %date%_%time > e:\backup\dump\eski_backup_temizle_%date%_%TIME%_log.txt
Oracle Export Script:
echo off
set BPATH=E:\BACKUP\dump
set LPATH=E:\BACKUP\dump\log
set SID=DB
exp system/password@%SID% file=%BPATH%\%SID%_%date%.dmp log="%LPATH%\%SID%_%date%.log" FULL=Y STATISTICS=NONE
Oracle Sql Çalıştırma Scripti:
echo on
set SID=DB
sqlplus system/password@%SID% @E:\BACKUP\lisans.sql