mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-24 16:23:36 +05:00
refactor(BackupManager): rework backup structure and implement single file backup method
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user