Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
YogeshDesai
Posting Yak Master
136 Posts |
Posted - 2007-11-13 : 08:13:46
|
| Hi Guys I need a samll help to create bat file for differential backupSQL IN Minds |
|
|
graz
Chief SQLTeam Crack Dealer
4149 Posts |
Posted - 2007-11-13 : 08:18:41
|
| (Moved to the Administration forum.)-graz=================================================Creating tomorrow's legacy systems today. One crisis at a time. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-11-13 : 18:33:35
|
quote: Originally posted by YogeshDesai Hi Guys I need a samll help to create bat file for differential backup
What part are you having a problem with?Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/ |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-11-13 : 22:23:20
|
| You can run 'backup database' with sqlcmd or osql, and put that whole thing in .bat file. |
 |
|
|
YogeshDesai
Posting Yak Master
136 Posts |
Posted - 2007-11-20 : 09:48:29
|
| Hi For more details i will show you an exmple this is .bat file for user database backups, it's takes full backup, and I want to create same script for differential backup could you help me ?example:@echo offrem *********************************************************************rem Script: SQL Server - Application DB Backuprem rem Purpose: To run the application db checks and backup and check for errorsrem remrem Parameters: Nonerem *********************************************************************echo %DATE% %TIME% %0 *********************************************************************echo %DATE% %TIME% %0 Running the Application db checks and backup for %SQL_SERVER%echo %DATE% %TIME% %0 *********************************************************************%SQLMAINT_PGM% -S %SQL_SERVER% -PlanName %APP_PLAN_1% -Rpt "%LOG_DIR%\Application db backup.txt" -DelTxtRpt %RPT_PURGE% -WriteHistory -VrfyBackup -BkUpOnlyIfClean -CkDB -BkUpMedia DISK -BkUpDB %BACKUP_DIR% -DelBkUps %BKP_PURGE% -CrBkSubDir -BkExt "BAK"if not %errorlevel% == 0 goto end_osqlerr:end_successecho %DATE% %TIME% %0 Completed successfullygoto EOF:end_osqlerrecho %DATE% %TIME% %0 Job failureexit 1goto EOF:EOFecho %DATE% %TIME% %0 *********************************************************************echo %DATE% %TIME% %0 End of processingecho %DATE% %TIME% %0 *********************************************************************SQL IN Minds |
 |
|
|
|
|
|