April 7, 2011 at 12:40 pm
hi,
how can we take backup at 2 sparate disk at one time ?
can any one proivde me the code or the process by which it can be made it possible.
April 7, 2011 at 1:15 pm
Ivan Mohapatra (4/7/2011)
hi,how can we take backup at 2 sparate disk at one time ?
can any one proivde me the code or the process by which it can be made it possible.
You're not entirely clear on what it is you require exactly.
Do you want to stripe to multiple files on different disks or do you want to mirror the backup files to a different location?
Examples are shown below
Stripe to multiple files
BACKUP DATABASE MYDB TO
DISK = 'K:\MSSQL\BACKUP\MYDB-1.BAK',
DISK = 'L:\MSSQL\BACKUP\MYDB-2.BAK',
DISK = 'M:\MSSQL\BACKUP\MYDB-3.BAK'
WITH INIT, STATS = 10
[/CODE]
Mirror to another location
BACKUP DATABASE MYDB TO
DISK = 'K:\MSSQL\BACKUP\MYDB-1.BAK'
MIRROR TO DISK = '\\DRSERVER\BACKUPSHARE\MYDB-1.BAK'
WITH FORMAT, STATS = 10, INIT
All together
BACKUP DATABASE MYDB TO
DISK = 'K:\MSSQL\BACKUP\MYDB-1.BAK',
DISK = 'L:\MSSQL\BACKUP\MYDB-2.BAK',
DISK = 'M:\MSSQL\BACKUP\MYDB-3.BAK'
MIRROR TO
DISK = 'DRSERVER\BACKUPSHARE\MYDB-1.BAK',
DISK = 'DRSERVER\BACKUPSHARE\MYDB-2.BAK',
DISK = 'DRSERVER\BACKUPSHARE\MYDB-3.BAK',
WITH FORMAT, INIT, STATS = 10
[/CODE]
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
April 8, 2011 at 6:18 am
While striping to multiple file locations, on what basis would they be striped.
Eg. if total backup size is 100 GB, and if we create 10 stripes, each stripe would be 10 GB right?
M&M
April 8, 2011 at 7:27 am
mohammed moinudheen (4/8/2011)
While striping to multiple file locations, on what basis would they be striped.Eg. if total backup size is 100 GB, and if we create 10 stripes, each stripe would be 10 GB right?
SQL Server 2008 uses round robin to write to the files distributing data and I\O. It is best to use disks of comparable performance when backing up to files on different disk sets
The ratio is indeed individual file size = total backup size / number of files
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
April 8, 2011 at 7:32 am
What happens if you have a super fast disk array with 1 bad apple in the bunch?
April 8, 2011 at 8:15 am
i mean
Stripe to multiple files
BACKUP DATABASE MYDB TO
DISK = 'K:\MSSQL\BACKUP\MYDB-1.BAK',
DISK = 'L:\MSSQL\BACKUP\MYDB-2.BAK',
DISK = 'M:\MSSQL\BACKUP\MYDB-3.BAK'
WITH INIT, STATS = 10
thanks a lot .
April 8, 2011 at 10:55 am
Ninja's_RGR'us (4/8/2011)
What happens if you have a super fast disk array with 1 bad apple in the bunch?
array performance would be degraded admittedly
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
April 8, 2011 at 10:58 am
mohammed moinudheen (4/8/2011)
While striping to multiple file locations, on what basis would they be striped.Eg. if total backup size is 100 GB, and if we create 10 stripes, each stripe would be 10 GB right?
Thanks Perry
M&M
April 9, 2011 at 12:02 am
Hi;
As perry said its a very good solution of the topic,
But, If you are using MIRERR to option the Media must be same tyoe,
tape and tape or HDD and HDD.
Ali
MCTS SQL Server2k8
May 26, 2011 at 2:55 am
if i am taking backup from a remote system by using sql server Authentication login id and password
it is throughing error.why soo ?
May 26, 2011 at 4:29 am
Are you going to tell us the error?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 26, 2011 at 4:37 am
the error shows like this.
my t-sql code is
BACKUP DATABASE AdventureWorks
TO DISK = 'D:\Ivan\AdventureWorks.bak'
GO
Msg 3201, Level 16, State 1, Line 1
Cannot open backup device 'D:\test_k.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
May 26, 2011 at 4:43 am
Please don't post the same question in several places.
Replies to this please to http://www.sqlservercentral.com/Forums/Topic1115242-1550-1.aspx
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 26, 2011 at 4:54 am
i am sorry plz reply the answer in as gila told.
thanks in advance
Viewing 14 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic. Login to reply