Advertisement
Advertisement
| 08.07.2008 at 08:00AM PDT, ID: 23629567 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: |
@echo off
setlocal
REM get date into a variable to create good media name
for /F "usebackq delims=" %%i IN (`date /t`) DO set dt="%%ibackup media"
REM perform backup
ntbackup.exe backup C:\apps "C:\Program Files (x86)\Microsoft SQL Server\MSSQL\BACKUP" /v:no /r:no /rs:no /hc:on /snap:on /fu /m normal /j "CP-ENT Daily Backup" /l:s /f "\\cp-srv\RD1000\CP-ENT Backup.bks" /um
REM set folder name containing backup log files
set fld=C:\Documents and Settings\administrator.colorpoint.000\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\
REM dir command will list all log files sorted by date in bare format
set fcmd=dir "%fld%*.log" /OD /A-D /B
REM set command will set lastf variable to the last file in set, i.e. the latest one
for /F "tokens=* delims= " %%i in ('%fcmd%') do set lastf=%fld%%%i
REM email latest log file to administrator
c:\admin\blat.exe "%lastf%" -t administrator@colorpoint.biz -s "CP-ENT Daily Backup Report" -mime -server CP-SRV -f "cp-ent@colorpoint.local"
REM delete backup logs older than 30 days
forfiles -p "C:\Documents and Settings\administrator.colorpoint.000\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data" -s -m *.* -d -30 -c "CMD /C del @FILE"
|