SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 Backup Script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Noonien
Starting Member

2 Posts

Posted - 04/08/2013 :  03:22:37  Show Profile  Reply with Quote
Hello !
Hope this is the right forum.
I am doing a backup job on my sql server that looks that way:

BESMgmt:
BACKUP DATABASE [BESMgmt] TO DISK = N'D:\SQLBackup\BESMgmt\BESMgmt Backup' WITH NOFORMAT, NOINIT, NAME = N'BESMgmt-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

BMSStore:
BACKUP DATABASE [BMSStore] TO DISK = N'D:\SQLBackup\BMSStore\BMSStore Backup' WITH NOFORMAT, NOINIT, NAME = N'BMSStore-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

Master:
BACKUP DATABASE [master] TO DISK = N'D:\SQLBackup\master\master Backup' WITH NOFORMAT, NOINIT, NAME = N'master-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

Model:
BACKUP DATABASE [model] TO DISK = N'D:\SQLBackup\model\model Backup' WITH NOFORMAT, NOINIT, NAME = N'model-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO


Works.
My problem: The backup allways writes in the same backup file.
I need every day a new backup file, not allways stored i nthe same file.
In case that i really need to recove rbackup I will take much to long to restore such a big file instead of a dayli backup file, and , I am getting freespace problems on the hdd ...

Edited by - Noonien on 04/08/2013 06:39:01

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 04/08/2013 :  11:23:32  Show Profile  Visit russell's Homepage  Reply with Quote
Change NOINIT to INIT
Go to Top of Page

Noonien
Starting Member

2 Posts

Posted - 04/09/2013 :  02:12:49  Show Profile  Reply with Quote
quote:
Originally posted by russell

Change NOINIT to INIT



Will change it and report tomorrow if it worked. Thanks a lot :)
Go to Top of Page

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 04/09/2013 :  10:54:33  Show Profile  Visit russell's Homepage  Reply with Quote
Welcome.

Should get rid of these too: NOFORMAT, SKIP, NOREWIND, NOUNLOAD
Go to Top of Page

soushi01
Starting Member

Malaysia
8 Posts

Posted - 11/20/2014 :  03:34:32  Show Profile  Reply with Quote
quote:
Originally posted by russell

Change NOINIT to INIT



Hi,

maybe I Where to edit script like NOINIT change to INIT,
i only can view T-SQL script,cannot edit

thanks

Edited by - soushi01 on 11/20/2014 03:35:28
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000