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
 General SQL Server Forums
 New to SQL Server Administration
 SCRIPT REQUIRED
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

seshagirirao
Starting Member

India
1 Posts

Posted - 05/28/2012 :  05:58:38  Show Profile  Reply with Quote
Hi Team,

Much appriciated your helping with different solutions on time..

I need help:

Issue: Backup is happening on dialy basis to server A under F:\ drive.Need to move backup files on daily basis to Server B to F:\ drive.
I need automation script which will copy backup from server A to Server B.[Windows Mechines both][Need to create a job][Backup files used for mirror purpose only]
Any clarification please let us know.

Regards,
-Seshu

seshu

Sachin.Nand
Flowing Fount of Yak Knowledge

2937 Posts

Posted - 05/28/2012 :  09:34:36  Show Profile  Reply with Quote
use Robocopy.

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

Transact Charlie
Flowing Fount of Yak Knowledge

United Kingdom
3442 Posts

Posted - 05/28/2012 :  12:35:15  Show Profile  Visit Transact Charlie's Homepage  Reply with Quote
what part of the process are you having the most trouble starting?

Do you want advice on automating it (setting up a sql server agent job / other auto task manager)

or the copying from server a to server b?

Transact Charlie
Msg 3903, Level 16, State 1, Line 1736:
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION

http://nosqlsolution.blogspot.co.uk/
Go to Top of Page

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 05/29/2012 :  09:58:29  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Here's an SP that will copy files - uses the filename format to get the latest to copy.
http://www.nigelrivett.net/SQLAdmin/s_CopyLatestBackup.html

There are a number of ways of doing this depending on what is available to you.
You could use powershel, dos command file, ssis - the aove uses xp_cmdshell but that is disabled by default now and is often not allowed.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Sachin.Nand
Flowing Fount of Yak Knowledge

2937 Posts

Posted - 05/31/2012 :  02:30:40  Show Profile  Reply with Quote
SSIS ???

Its a nightmare to have those permutations combinations in the SSIS package when you have different set of of backups to be maintained.

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 05/31/2012 :  03:39:51  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Not really - just make the package genric. Most people think of SSIS as hard coded values and controlling processing, once yoou get away from that it becomes a lot simpler. In some companies it's the only solution allowed so it is worth getting familiar with it. If yoou stick to one operation per package unless there is a very good reason not to then you have something that could be considered component based implementation and easy to enhance - and don't end up with everything in ssis just because you want one operation there.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.

Edited by - nigelrivett on 05/31/2012 03:42:30
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.16 seconds. Powered By: Snitz Forums 2000