dbTalk Databases Forums  

Cube Archive \ Backup

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Cube Archive \ Backup in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brett Martin
 
Posts: n/a

Default Cube Archive \ Backup - 12-06-2004 , 02:37 AM






Has anybody found a way to automate this, or is it just a matter of making
sure that the analysis services data folder is backed up?

Cheers

Brett.

Reply With Quote
  #2  
Old   
Dan Reving
 
Posts: n/a

Default Re: Cube Archive \ Backup - 12-06-2004 , 10:57 AM






Hi Brett

MSAS is supplied with a command line tool, msmdarch.exe, for this purpose.
(it is located in the directory \Program Files\Microsoft Analysis
Services\Bin\)

It can easily be incorparated in a cmd/bat-file and thus automated, which I
have done myself.

Documentation about the tool is contained in the SQL Server books Online.

The tool can - as the online facility in Analysis Manager - only archive an
entire database. There is no functionality to archive parts of a database
e.g. a cube. This makes sense, when you consider the MSAS data structure.

I wouldn't recommend, that you merely backup the datafolder. Unless you stop
the MSAS-service, you can't be sure, that all files in there are closed. You
therefore run a significant risk of not backing everything up or even worse,
that you get an inconsistent backup. Besides this, the archive facility
(online or command line) heavily comresses your data (it makes a cab-file),
so the archive is significantly smaller than your actual data.

Best regards
Dan Reving

"Brett Martin" <BrettMartin (AT) discussions (DOT) microsoft.com> skrev i en meddelelse
newsA77D210-22D8-48F4-861A-7E989406CB33 (AT) microsoft (DOT) com...
Quote:
Has anybody found a way to automate this, or is it just a matter of making
sure that the analysis services data folder is backed up?

Cheers

Brett.



Reply With Quote
  #3  
Old   
Michael Vardinghus
 
Posts: n/a

Default Re: Cube Archive \ Backup - 12-06-2004 , 03:19 PM



Sounds interesting - I simply cannot get the synthax to work though....

In the example it says to put "" around the parameteres - does this apply
when being run in a dos prompt ? Tried thsi sentence but
nothing happens - no error - no backup - no nothing...

msmdarch /a localhost c:\program files\microsoft analysis
services\data\foodmart 2000 foodmart.cab

.....and then tried this

msmdarch /a localhost "c:\program files\microsoft analysis
services\data\foodmart 2000" foodmart.cab

/Michael

"Dan Reving" <dan.reving (AT) magasin (DOT) dknospam> wrote

Quote:
Hi Brett

MSAS is supplied with a command line tool, msmdarch.exe, for this purpose.
(it is located in the directory \Program Files\Microsoft Analysis
Services\Bin\)

It can easily be incorparated in a cmd/bat-file and thus automated, which
I
have done myself.

Documentation about the tool is contained in the SQL Server books Online.

The tool can - as the online facility in Analysis Manager - only archive
an
entire database. There is no functionality to archive parts of a database
e.g. a cube. This makes sense, when you consider the MSAS data structure.

I wouldn't recommend, that you merely backup the datafolder. Unless you
stop
the MSAS-service, you can't be sure, that all files in there are closed.
You
therefore run a significant risk of not backing everything up or even
worse,
that you get an inconsistent backup. Besides this, the archive facility
(online or command line) heavily comresses your data (it makes a
cab-file),
so the archive is significantly smaller than your actual data.

Best regards
Dan Reving

"Brett Martin" <BrettMartin (AT) discussions (DOT) microsoft.com> skrev i en
meddelelse
newsA77D210-22D8-48F4-861A-7E989406CB33 (AT) microsoft (DOT) com...
Has anybody found a way to automate this, or is it just a matter of
making
sure that the analysis services data folder is backed up?

Cheers

Brett.





Reply With Quote
  #4  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Cube Archive \ Backup - 12-06-2004 , 06:06 PM



See the following information from BOL -- Yes, you need double quotes.

Syntax
["command-path]msmdarch["] /a Server "OLAPDataPath" "DatabaseName"
"BackupFileName" ["LogFileName" ["TempDirectory"]]

command-path

The path containing the msmdarch.exe file. By default, this path is:

C:\Program Files\Microsoft Analysis Services\Bin

Server

The server computer name that contains the database you want to archive.

OLAPDataPath

The path of the Data directory that contains the files for the database you
want to archive. By default, this path is:

C:\Program Files\Microsoft Analysis Services\Data

DatabaseName

The name of the database you want to archive.

BackupFileName

The path, file name, and .cab extension of the archive file.

LogFileName

The path, file name, and .log extension of the archive log. If you specify
an archive log that already exists, the new archive log is appended to it.
If you specify an invalid path or file name, the archive log is written to
the DBArchive.log file, which by default is C:\Program Files\Microsoft
Analysis Services\Bin\DBArchive.log.

TempDirectory

The specified path of the temporary directory used for processing space.
This option must be specified if LogFileName is specified.

Sample:

The following command archives the sample FoodMart 2000 database included in
Analysis Services.

"\Program Files\Microsoft Analysis Services\Bin\msmdarch" /a myserver
"\Program Files\Microsoft Analysis Services\Data\" "FoodMart 2000"
"\My archives\server myserver\FoodMart 2000.cab"




--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Michael Vardinghus" <michaelvardinghus (AT) hotmail (DOT) com> wrote

Quote:
Sounds interesting - I simply cannot get the synthax to work though....

In the example it says to put "" around the parameteres - does this apply
when being run in a dos prompt ? Tried thsi sentence but
nothing happens - no error - no backup - no nothing...

msmdarch /a localhost c:\program files\microsoft analysis
services\data\foodmart 2000 foodmart.cab

....and then tried this

msmdarch /a localhost "c:\program files\microsoft analysis
services\data\foodmart 2000" foodmart.cab

/Michael

"Dan Reving" <dan.reving (AT) magasin (DOT) dknospam> wrote in message
news:e1EmIT72EHA.2192 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Hi Brett

MSAS is supplied with a command line tool, msmdarch.exe, for this
purpose.
(it is located in the directory \Program Files\Microsoft Analysis
Services\Bin\)

It can easily be incorparated in a cmd/bat-file and thus automated,
which
I
have done myself.

Documentation about the tool is contained in the SQL Server books
Online.

The tool can - as the online facility in Analysis Manager - only archive
an
entire database. There is no functionality to archive parts of a
database
e.g. a cube. This makes sense, when you consider the MSAS data
structure.

I wouldn't recommend, that you merely backup the datafolder. Unless you
stop
the MSAS-service, you can't be sure, that all files in there are closed.
You
therefore run a significant risk of not backing everything up or even
worse,
that you get an inconsistent backup. Besides this, the archive facility
(online or command line) heavily comresses your data (it makes a
cab-file),
so the archive is significantly smaller than your actual data.

Best regards
Dan Reving

"Brett Martin" <BrettMartin (AT) discussions (DOT) microsoft.com> skrev i en
meddelelse
newsA77D210-22D8-48F4-861A-7E989406CB33 (AT) microsoft (DOT) com...
Has anybody found a way to automate this, or is it just a matter of
making
sure that the analysis services data folder is backed up?

Cheers

Brett.







Reply With Quote
  #5  
Old   
benaud@gmail.com
 
Posts: n/a

Default Re: Cube Archive \ Backup - 12-06-2004 , 11:45 PM




Dave Wickert [MSFT] wrote:
Quote:
See the following information from BOL -- Yes, you need double
quotes.

Syntax
["command-path]msmdarch["] /a Server "OLAPDataPath" "DatabaseName"
"BackupFileName" ["LogFileName" ["TempDirectory"]]

command-path

The path containing the msmdarch.exe file. By default, this path is:

C:\Program Files\Microsoft Analysis Services\Bin

Server

The server computer name that contains the database you want to
archive.

OLAPDataPath

The path of the Data directory that contains the files for the
database you
want to archive. By default, this path is:

C:\Program Files\Microsoft Analysis Services\Data

DatabaseName

The name of the database you want to archive.

BackupFileName

The path, file name, and .cab extension of the archive file.

LogFileName

The path, file name, and .log extension of the archive log. If you
specify
an archive log that already exists, the new archive log is appended
to it.
If you specify an invalid path or file name, the archive log is
written to
the DBArchive.log file, which by default is C:\Program
Files\Microsoft
Analysis Services\Bin\DBArchive.log.

TempDirectory

The specified path of the temporary directory used for processing
space.
This option must be specified if LogFileName is specified.

Sample:

The following command archives the sample FoodMart 2000 database
included in
Analysis Services.

"\Program Files\Microsoft Analysis Services\Bin\msmdarch" /a myserver
"\Program Files\Microsoft Analysis Services\Data\" "FoodMart 2000"
"\My archives\server myserver\FoodMart 2000.cab"




--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Michael Vardinghus" <michaelvardinghus (AT) hotmail (DOT) com> wrote in message
news:OuBoSl92EHA.480 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Sounds interesting - I simply cannot get the synthax to work
though....

In the example it says to put "" around the parameteres - does this
apply
when being run in a dos prompt ? Tried thsi sentence but
nothing happens - no error - no backup - no nothing...

msmdarch /a localhost c:\program files\microsoft analysis
services\data\foodmart 2000 foodmart.cab

....and then tried this

msmdarch /a localhost "c:\program files\microsoft analysis
services\data\foodmart 2000" foodmart.cab

/Michael

"Dan Reving" <dan.reving (AT) magasin (DOT) dknospam> wrote in message
news:e1EmIT72EHA.2192 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Hi Brett

MSAS is supplied with a command line tool, msmdarch.exe, for this
purpose.
(it is located in the directory \Program Files\Microsoft Analysis
Services\Bin\)

It can easily be incorparated in a cmd/bat-file and thus
automated,
which
I
have done myself.

Documentation about the tool is contained in the SQL Server books
Online.

The tool can - as the online facility in Analysis Manager - only
archive
an
entire database. There is no functionality to archive parts of a
database
e.g. a cube. This makes sense, when you consider the MSAS data
structure.

I wouldn't recommend, that you merely backup the datafolder.
Unless you
stop
the MSAS-service, you can't be sure, that all files in there are
closed.
You
therefore run a significant risk of not backing everything up or
even
worse,
that you get an inconsistent backup. Besides this, the archive
facility
(online or command line) heavily comresses your data (it makes a
cab-file),
so the archive is significantly smaller than your actual data.

Best regards
Dan Reving

"Brett Martin" <BrettMartin (AT) discussions (DOT) microsoft.com> skrev i en
meddelelse
newsA77D210-22D8-48F4-861A-7E989406CB33 (AT) microsoft (DOT) com...
Has anybody found a way to automate this, or is it just a
matter of
making
sure that the analysis services data folder is backed up?

Cheers

Brett.






Reply With Quote
  #6  
Old   
Alex Thomas
 
Posts: n/a

Default Re: Cube Archive \ Backup - 01-15-2006 , 07:46 PM



I have the same issue as Michael V, where the command line utility just isn't
responding. No log files being created, etc.

I open a command window at the 'c:\Program Files\Microsoft Analysis
Services\Bin" folder.

My command line is: msmdarch.exe /rs localhost "c:\Program Files\Microsoft
Analysis Services\Data" "c:\dev\ae\vhirs.cab" "c:\dev\ae\vhirs_cubues.log"
"c:\windows\temp". Nothing visible, no log file, no Events.

My config is XPSP2, SQL2000SP4,SQL2005 and an anti-virus app (Command
Anti-virus for Windows Enterprise.

Any suggestions/ideas?

Thanks,

Alex

Reply With Quote
  #7  
Old   
 
Posts: n/a

Default Re: Cube Archive \ Backup - 01-17-2006 , 04:08 AM



Can you run the archive operation from Analysis Manager? It may give you
a better indication why the operation is failing.

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <749DBC89-F760-4524-8D96-B62DDA3D5D60 (AT) microsoft (DOT) com>,
AlexThomas (AT) discussions (DOT) microsoft.com says...
Quote:
I have the same issue as Michael V, where the command line utility just isn't
responding. No log files being created, etc.

I open a command window at the 'c:\Program Files\Microsoft Analysis
Services\Bin" folder.

My command line is: msmdarch.exe /rs localhost "c:\Program Files\Microsoft
Analysis Services\Data" "c:\dev\ae\vhirs.cab" "c:\dev\ae\vhirs_cubues.log"
"c:\windows\temp". Nothing visible, no log file, no Events.

My config is XPSP2, SQL2000SP4,SQL2005 and an anti-virus app (Command
Anti-virus for Windows Enterprise.

Any suggestions/ideas?

Thanks,

Alex


Reply With Quote
  #8  
Old   
Alex Thomas
 
Posts: n/a

Default Re: Cube Archive \ Backup - 01-19-2006 , 06:30 PM



Thanks Darren,

Restoring archives from the Analysis Manager works perfectly.

Alex

Reply With Quote
  #9  
Old   
wekrato
 
Posts: n/a

Default Re: Cube Archive \ Backup - 02-07-2006 , 11:02 AM



Hi Alex!

I got similar problems, but I am trying to get msmdarch running on a
website.
Here is my thread:
http://groups.google.at/group/micros...6788df28649ea3

Maybe we can share our knowledge.
I have found out that errors are fatal. If you use the wrong drive or
anything it does not give you a clue and not an error message.
There is a KB on this:
http://support.microsoft.com/default...8049#appliesto

I have an idea that it might have a problem with spaces inside the file
name.
Furthermore the user issueing the command needs to be in the OLAP Admin
group.

I managed to import it with a batch file, it seems to work better than
just with the command and I check the errorlevel afterwards.
In case somebody is still interested I can post the batch file.
Has anybody an idea on what could be the trick to get it running in my
ASP.NET page?

Nice regards
Werner


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.