mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-01 23:58:33 +02:00
lala
This commit is contained in:
@ -300,19 +300,19 @@ if _BACKUP:
|
||||
|
||||
while True:
|
||||
directory = '/backups/'
|
||||
count = len(fnmatch.filter(os.listdir(directory), '*.*'))
|
||||
count = len(fnmatch.filter(os.listdir(directory), '.*'))
|
||||
|
||||
print('File Count:', count)
|
||||
if count == 0:
|
||||
time.sleep(10)
|
||||
continue
|
||||
|
||||
|
||||
|
||||
else:
|
||||
# iterate over files in
|
||||
# that directory
|
||||
for filename in os.scandir(directory):
|
||||
if filename.is_file():
|
||||
|
||||
print(filename.path)
|
||||
continue
|
||||
print("Backup")
|
||||
for b in backups[host]:
|
||||
topic = "sectorq/omv/backups/{}".format(b.lower())
|
||||
|
Reference in New Issue
Block a user