|
View previous topic :: View next topic |
Author |
Message |
SplanK
Joined: 21 Nov 2007 Posts: 38
|
Posted: Mon Sep 14, 2015 2:20 am Post subject: File Count - File name mask question |
|
|
Hello,
We have a SQL backup process and I keep an eye on it using HM.
A process takes the .bak files on the SQL server, compresses them and shifts the compressed version offsite. It renames the original, uncompressed backup from
DBNAME_backup_201509121330.bak
to
DBNAME_backup_201509121330.COMPRESSED.bak
One of the ways I monitor the SQL backups is to count the number of .bak files without the COMPRESSED marker, and I presently use the file mask "*0.bak" to look for them
However I have just realised one of our SQL servers don't follow this rule and the 0 could be between 0 and 9.
Is there a way to use a regular expression, or some other function to search for a single value between 0-9? I cant see anything in the help menu
Thanks |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
|
Back to top |
|
|
SplanK
Joined: 21 Nov 2007 Posts: 38
|
Posted: Mon Sep 14, 2015 6:35 am Post subject: |
|
|
Thanks,
I will knock together a quick VBS script to do the job! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|