Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.99 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --
  2. -- Author:: <%= @author_name %> / <%= @author_email %>
  3. -- Cookbook Name:: smashrun
  4. -- Templates:: <%= @basesql_template %>
  5. --
  6. -- Copyright 2010, Smashrun, Inc.
  7. --
  8. -- Licensed under the Apache License, Version 2.0 (the "License");
  9. -- you may not use this file except in compliance with the License.
  10. -- You may obtain a copy of the License at
  11. --
  12. --     http://www.apache.org/licenses/LICENSE-2.0
  13. --
  14. -- Unless required by applicable law or agreed to in writing, software
  15. -- distributed under the License is distributed on an "AS IS" BASIS,
  16. -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. -- See the License for the specific language governing permissions and
  18. -- limitations under the License.
  19. --
  20. -- http://msdn.microsoft.com/en-us/library/ms176061.aspx
  21.  
  22. <% @database.each do |db| -%>
  23. -- TRANSLOG Back up the <%= db['id'] %> database to disk
  24. BACKUP LOG <%= db['id'] %>
  25.   TO DISK = '<%= db['backupdrive'] %><%= db['backupdir'] %>\trans-<%= db['id'] %>.bak'
  26.         WITH INIT;
  27. GO
  28.  
  29. <% end -%>