title: Backing Analysis Services cube daily with a datestamp
body: <p>I am creating a job that runs every day to back up an SSAS database that I have. Here is the Analysis Services Command for that </p>
  
  <p>Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"</p>
  
  <p><code>&lt;Object&gt;</code>
  <code>&lt;DatabaseID&gt;PipeLine&lt;/DatabaseID&gt;</code>
  <code>&lt;/Object&gt;</code>
  <code>&lt;File&gt;C:\DBBackup\PipeLine.abf&lt;/File&gt;</code>
   <code>&lt;/Backup&gt;</code></p>
  
  <p>I don't write to overwrite my backup daily. Could any one please let me know how to add a date-stamp to my backup file. </p>
  
  <p>If not, I have backup-devices for each day(eg, Sunday, Monday, Tuesday etc). Is there a way I could check for the day and store the backup in the respective backup device for the day</p>
  
  <p>Please help me</p>