This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################################################################### | |
| #Script Name : mssql_dump.sh | |
| #Description : will create SQL scripts as defined by mssql-scripter | |
| # and will zip backup files and store for X days (set to 30) | |
| #Author : Tim Moses | |
| #Github : https://github.com/tjmoses | |
| #Notes : Make sure to add the appropriate MSSQL_SCRIPTER_CONNECTION_STRING | |
| # for your db connection. Also, revise your target & edition | |
| # sql server for the mssql-scripter command below. The zip library is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // NOTE: this adds a filename and line number to winston's output | |
| // Example output: 'info (routes/index.js:34) GET 200 /index' | |
| var winston = require('winston') | |
| var path = require('path') | |
| var PROJECT_ROOT = path.join(__dirname, '..') | |
| var logger = new winston.logger({ ... }) | |
| // this allows winston to handle output from express' morgan middleware |