views:

1030

answers:

5

Hi,

I would like to save my backups from my SQL 2008 server to another server location. We have 2 servers:

  • Deployment server
  • File Server

The problem is that the deployment server doesn't have much space. And we keep 10 days backups of our databases. Therefore we need to store our backups on an external "file server". The problem is that SQL doesn't permit this. I've tried to run the SQL 2008 service with an account that has admin rights on both pc's (domain account), but this still doesn't work.

Any thoughts on this one. Otherwise we'll have to put an external harddisk on a rack server and that's kinda silly no?

Kind regards, Sem

EDIT:

I've found a way to make it work. You have to share the folder on the server. Then grant the Development Server (the PC itself) write permissions. This will make external backups possible with SQL server. Don't know if it's safe though, I find it kinda strange to give a computer rights on a folder.

+1  A: 

Hello,

you might use a scheduler to move backups after a certain amount of time after the backup started with a batch file.

If I remember correctly there's a hack to enable the sql server to back up on remote storage, but I don't think a hack is the way to go.

Surely the best possibility may be to use an external backup tool which supports the use of agents. They control when the backup starts and take care of the files to move around.

Sascha

Sascha
this could be a solution if it were possible to create at least 1 backup. The problem is that our databases are 6 - 7 gig each. and we have 6 db's so that 36 gigabytes that needs to be available, and we don't have that. but it's a good solution.
Sem Dendoncker
I'm not fond of Backup Agents for SQL. What happens when you have a problem trying to restore? I've seen plenty of cries for help in the forums from SQL Backup-Agent users :(
Kristen
P.S. I have read plenty of good things about SQL Litespeed backup from Quest in the past. No personal experience though.
Kristen
I thinks there are pros and cons in using backup agents like Veritas backup exec for example. As with every backup solution one should test the worst case situation: Restore it in a planned maintenance phase. Perhaps on a second server.
Sascha
From an enterprise view, with many systems, agents provide comfort and are central for a manageable infrastructure (not for the ten servers of a small company, but for 100 or more servers having order in the backups is crucial).
Sascha
+1  A: 

Hi,

You could create a nice and tidy little SQL Server Integration Services (SSIS) package to both carry out the backup and then move the data to your alternative file store.

Interestingly enough, the maintenance plans within SQL Server actually use SSIS components. These same components are available to use within the Business Intelligence Design Studio (BIDS).

I hope this is clear but let me know if you require further assistance.

Cheers, John

John Sansom
thx i'll look into this. Will let you know if i need more assistance.
Sem Dendoncker
A: 

My experiences older versions of MSSQL, so there may be things in SQL2008 which help you better.

We are very tight on disk space on some of our old servers. These are machines at our ISP and their restore-from-tape lead time is not good - 24 hours is not uncommon :( so we need to keep a decent online backup history.

We take full backup on Sunday, differential backup each other night, and TLog backups every 10 minutes.

We force Tlog backups every minute during table/index defrag and statistics update - this is because these are the most TLog-intensive tasks that we run, and they were previously responsibly for determining the size of the standing Tlog file; since this change we've been able to run the TLog standing size about 60% smaller than before.

Worth watching the size of Diff backups though - if it turns out that by the Wednesday backup your DIFF backup is getting close to the size of the Full backup you might as well run a Full backup twice a week and have smaller Diff backups for the next day or two.

When you delete your Full or Diff backup files (to recover the disk space) make sure you delete the TLog backups that are earlier. But consider your recovery path - would you like to be able to restore last Sunday's Full backup and all Tlogs since, or are you happy that for moment-in-time restore you can only go back as far as last night's DIFF backup? (i.e. to go back further you can only restore to FULL / DIFF backup, and not to point-in-time) If the later you can delete all earlier Tlog backups as soon as you have made the DIFF backup.

(Obviously, regardless of that, you need to get the backups on to tape etc. and to your copy-server, you just don't have to be dependant on tape recovery to make your Restore, but you are losing granularity of restore with time)

We may recover the last Full (or the Last Full plus Monday's DIFF) to a "temporary database" to check out something, and then drop that DB, but if we really REALLY had to restore to "last Monday 15-minutes-past-10 AM" we would live with having to get backups back from tape or off the copy-server.

All our backup files are in an NTFS directory with Compress set. (You can probably make compressed backups direct from SQL2008??, the servers we have which are disk-starved are running SQL2000). I have read that this is frowned upon, but never seen good reasoning why, and we've never had a problem with it - touch wood!

Kristen
this is actually not a bad idea.but if you have a differential backup, do you have to run all of them to get to the previous version?
Sem Dendoncker
You have to restore the FULL then the DIFF then all the TLOG backups since then (if you want to recover to more recently than the time of the DIFF). NOTE: You must recover the FULL made most recently prior to Diff. i.e. the DIFF is based on the preceding FULL. Also you must keep any AdHoc FULL's
Kristen
+4  A: 

You can use 3rd party tools like SqlBackupAndFTP

I'd definately recommend this tool for something simple that just works.
Generic Error
+1  A: 

There are serveral ways of doing this already described, but this one is based on my open source project, SQL Server Compressed Backup. It is a command line tool for backing up SQL Server databases, and it can write to anywhere the NT User running it can write to. Just schedule it in Scheduled Tasks running with a user with appropriate permissions.

An example of backing up to a share on another server would be:

msbp.exe backup "db(database=model)" "gzip" "local(path=\\server\share\path\model.full.bak.gz)"

All the BACKUP command options that make sense for backing up to files are available: log, differential, copy_only, checksum, and more (tape drive options are not available for instance).

Clay Lenhart