Merge branch 'master' of github.com:Silthus/restic-compose-backup

This commit is contained in:
mc1 2020-11-17 15:37:19 +01:00
commit 64cbe3c3b5
2 changed files with 1 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import os
class Config:
default_backup_command = ". /env.sh && /backup.sh > /proc/1/fd/1 2>&1"
default_crontab_schedule = "0 2 * * *"
default_crontab_schedule = "0 */4 * * *"
"""Bag for config values"""
def __init__(self, check=True):

View File

@ -34,10 +34,6 @@ def validate_schedule(schedule: str):
if len(parts) != 5:
return False
for p in parts:
if p != '*' and not p.isdigit():
return False
minute, hour, day, month, weekday = parts
try:
validate_field(minute, 0, 59)