diff options
Diffstat (limited to 'plugins/Db_autobackups/src/backup.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/backup.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index 3ff1be80ba..2c5c9568cb 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -215,7 +215,11 @@ static int Backup(wchar_t *backup_filename) bZip = g_plugin.use_zip != 0;
RotateBackups(backupfolder, dbname);
- CMStringW wszFileName(VARSW(g_plugin.file_mask));
+ CMStringW wszFileName;
+ if (ServiceExists(MS_VARS_FORMATSTRING))
+ wszFileName = VARSW(ptrW(variables_parse(g_plugin.file_mask, nullptr, 0)));
+ else
+ wszFileName = VARSW(g_plugin.file_mask);
wchar_t buffer[MAX_PATH];
DWORD size = _countof(buffer);
|