Returns dated string with this format 2014_12_30_135857_4581860
()
| 139 | return rows |
| 140 | |
| 141 | def DatedString(): |
| 142 | """ |
| 143 | Returns dated string with this format |
| 144 | 2014_12_30_135857_4581860 |
| 145 | """ |
| 146 | |
| 147 | from datetime import datetime |
| 148 | now = str(datetime.now()) |
| 149 | now = now.replace('-', '_') |
| 150 | now = now.replace(' ', '_') |
| 151 | now = now.replace(':', '') |
| 152 | now = now.replace('.', '_') + '0' |
| 153 | |
| 154 | return now |
| 155 | |
| 156 | |
| 157 | def BuildTlogSQL(dbname, sourcedb, bkfolder, recovery = 'NORECOVERY', BACKUP_MASK = '_backup_20*.BAK', LOG_MASK = '_backup_20*.TRN'): |
no test coverage detected