schedule backup and restore of SSAS 2008 database

Posted by Manjot on Server Fault See other posts from Server Fault or by Manjot
Published on 2010-05-11T03:20:31Z Indexed on 2010/05/11 3:25 UTC
Read the original article Hit count: 470

Hi,

I can backup and restore databases on Microsoft SQL server Analysis Service 2008 using GUI as from Backup SSAS

I want to schedule backup and restore it to another server every night. so what i did is : I scripted out the backup and restore process from the GUI. Created a new SQL server agent job in database engine and added a "Run SSAS query" step. Copied the scripts to this step. But it fails. the scripts that the GUI copied out look like:

<Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Object>
    <DatabaseID>DB</DatabaseID>
  </Object>
  <File>C:\Backup\DB.abf</File>
  <AllowOverwrite>true</AllowOverwrite>
</Backup>

<Restore xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <File>\\server\C$\Backup\DB.abf</File>
  <DatabaseName>DB</DatabaseName>
  <AllowOverwrite>true</AllowOverwrite>
</Restore>

Any help please?

© Server Fault or respective owner

Related posts about sql-server-2008

Related posts about analysis-services