Decommission pergolesi.d.o
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-backuppg
index ccf9e3d..0ce4d95 100755 (executable)
@@ -138,6 +138,10 @@ config = load_conf(options.conffile)
 
 os.chdir(config['rootdir'])
 for dir in os.listdir('.'):
+    if dir.startswith('.') or dir.endswith('.old'):
+        note_info('IGNORED', dir)
+        continue
+
     if not os.path.isdir(dir):
         if min(os.path.getmtime(dir), os.path.getctime(dir)) + 3600*4 > time.time():
             note_info('IGNORED', dir)