refactor(BackupManager): rework backup structure and implement single file backup method

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2023-12-24 12:58:41 +01:00
parent b9479db766
commit 2f0feb317e
4 changed files with 40 additions and 47 deletions

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python3
import subprocess
# ======================================================================= #
# Copyright (C) 2020 - 2023 Dominik Willner <th33xitus@gmail.com> #
@@ -10,6 +9,7 @@ import subprocess
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
import subprocess
from datetime import datetime
from pathlib import Path
from typing import Dict, Literal, List, Type
@@ -33,8 +33,8 @@ def get_current_date() -> Dict[Literal["date", "time"], str]:
:return: Dict holding a date and time key:value pair
"""
now: datetime = datetime.today()
date: str = now.strftime("%Y-%m-%d")
time: str = now.strftime("%H-%M-%S")
date: str = now.strftime("%Y%m%d")
time: str = now.strftime("%H%M%S")
return {"date": date, "time": time}