vhost cleanup
[mirror/dsa-puppet.git] / modules / bacula / files / bacula-unlink-removed-volumes
index 28e1165..ec7fc62 100755 (executable)
@@ -49,6 +49,8 @@ parser.add_argument('-v', '--verbose', dest='verbose', action='store_true')
 parser.add_argument('-n', '--no-do', dest='nodo', action='store_true')
 args = parser.parse_args()
 
+whitelist = ['.nobackup']
+
 if args.db is not None:
     pass
 elif args.dbfile is not None:
@@ -72,6 +74,7 @@ for path, dirs, files in os.walk(args.root):
   files.sort()
   for f in files:
     if f in media: continue
+    if f in whitelist: continue
     full = os.path.join(path, f)
     st = os.stat(full)
     mtime = datetime.fromtimestamp(int(st.st_mtime))