mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-09-13 04:10:10 +02:00
build
This commit is contained in:
@@ -634,9 +634,9 @@ if _BACKUP:
|
||||
epoch_time = int(dt.timestamp())
|
||||
now_epoch = int(datetime.datetime.now().timestamp())
|
||||
x = now_epoch - epoch_time
|
||||
logging.info(epoch_time) # Output: 45
|
||||
if x > "2592000":
|
||||
dir_path = "{BACKUP_ROOT}/{f}"
|
||||
# logging.info(epoch_time) # Output: 45
|
||||
if x > 2592000:
|
||||
dir_path = f"{BACKUP_ROOT}/{f}"
|
||||
logging.info(f"removing {dir_path}")
|
||||
shutil.rmtree(dir_path)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user