v0.2 Alpha Release

This commit is contained in:
Björn Nehlsen
2026-08-11 23:33:40 +02:00
parent a495570b20
commit 8ad924b6ba
14 changed files with 147 additions and 93 deletions
+4 -4
View File
@@ -26,7 +26,7 @@ class AppRunner:
ConsoleUI.info("Alle Abhaengigkeiten sind bereits installiert.")
def setup(self) -> None:
ConsoleUI.headline("StFV Backup Setup")
ConsoleUI.headline("BackItUp Setup")
self._bootstrap()
ConsoleUI.success("System ist bereit.")
self._install_systemd_service()
@@ -40,7 +40,7 @@ class AppRunner:
ConsoleUI.info("Manuelle Installation: bash scripts/service.sh install")
return
service_name = "nextcloud-backup.service"
service_name = "BackItUp.service"
user_systemd_dir = Path.home() / ".config" / "systemd" / "user"
user_systemd_dir.mkdir(parents=True, exist_ok=True)
@@ -50,7 +50,7 @@ class AppRunner:
venv_python = self.paths.venv_dir / "bin" / "python"
service_content = f"""[Unit]
Description=StFV Backup Flask Service
Description=BackItUp Flask Service
After=network-online.target
Wants=network-online.target
@@ -82,7 +82,7 @@ WantedBy=default.target
ConsoleUI.info(f"Logs verfolgen: journalctl --user -u {service_name} -f")
def run(self) -> None:
ConsoleUI.headline("StFV Backup Bootstrap")
ConsoleUI.headline("BackItUp Bootstrap")
self._bootstrap()
from app.config_store import ConfigStore
+6 -6
View File
@@ -153,8 +153,8 @@ def _test_smb_with_pysmb(target: TargetConnection) -> tuple[bool, str]:
conn = SMBConnection(
target.username,
target.password,
"stfv-backup-client",
"stfv-backup-server",
"backitup-client",
"backitup-server",
use_ntlm_v2=True,
is_direct_tcp=True,
)
@@ -208,8 +208,8 @@ def _browse_smb_with_pysmb(target: TargetConnection) -> tuple[bool, str, list[di
conn = SMBConnection(
target.username,
target.password,
"stfv-backup-client",
"stfv-backup-server",
"backitup-client",
"backitup-server",
use_ntlm_v2=True,
is_direct_tcp=True,
)
@@ -439,8 +439,8 @@ def create_smb_directory(target: TargetConnection, base_path: str, folder_name:
conn = SMBConnection(
target.username,
target.password,
"stfv-backup-client",
"stfv-backup-server",
"backitup-client",
"backitup-server",
use_ntlm_v2=True,
is_direct_tcp=True,
)
+1 -1
View File
@@ -1,6 +1,6 @@
{% extends "base_admin.html" %}
{% block title %}StFV Backup - Admin Konto{% endblock %}
{% block title %}BackItUp - Admin Konto{% endblock %}
{% block content %}
<h2>Admin Konto</h2>
+1 -1
View File
@@ -1,6 +1,6 @@
{% extends "base_admin.html" %}
{% block title %}StFV Backup - Backup bearbeiten{% endblock %}
{% block title %}BackItUp - Backup bearbeiten{% endblock %}
{% block content %}
<h2 style="margin-bottom:4px;">Backup bearbeiten</h2>
+1 -1
View File
@@ -1,6 +1,6 @@
{% extends "base_admin.html" %}
{% block title %}StFV Backup - Neues Backup{% endblock %}
{% block title %}BackItUp - Neues Backup{% endblock %}
{% block content %}
<h2 style="margin-bottom:4px;">Neues Backup einrichten</h2>
+2 -2
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}StFV Backup{% endblock %}</title>
<title>{% block title %}BackItUp{% endblock %}</title>
<style>
:root {
--paper: #f8fbff;
@@ -237,7 +237,7 @@
<main class="layout">
<section class="panel top">
<div>
<h1 class="brand">StFV Backup</h1>
<h1 class="brand">BackItUp</h1>
<p class="sub">Angemeldet als {{ adminuser }}</p>
</div>
<div>
+1 -1
View File
@@ -1,6 +1,6 @@
{% extends "base_admin.html" %}
{% block title %}StFV Backup - Dashboard{% endblock %}
{% block title %}BackItUp - Dashboard{% endblock %}
{% block content %}
<style>
+2 -2
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>StFV Backup - Login</title>
<title>BackItUp - Login</title>
<style>
:root {
--bg-1: #f7f9fc;
@@ -134,7 +134,7 @@
<body>
<main class="shell">
<header class="head">
<h1>StFV Backup</h1>
<h1>BackItUp</h1>
</header>
<section class="content">
{% if error_message %}
+1 -1
View File
@@ -1,6 +1,6 @@
{% extends "base_admin.html" %}
{% block title %}StFV Backup - Server Settings{% endblock %}
{% block title %}BackItUp - Server Settings{% endblock %}
{% block content %}
<h2>Server Settings</h2>
+1 -1
View File
@@ -1,6 +1,6 @@
{% extends "base_admin.html" %}
{% block title %}StFV Backup - Benutzer{% endblock %}
{% block title %}BackItUp - Benutzer{% endblock %}
{% block content %}
<h2>Benutzerverwaltung</h2>
+1 -1
View File
@@ -421,7 +421,7 @@ class FlaskServer:
target_base = f"backup_{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}"
archive_name = self._ensure_archive_suffix(target_base, method)
work_dir = Path(tempfile.mkdtemp(prefix="stfv-backup-"))
work_dir = Path(tempfile.mkdtemp(prefix="backitup-"))
staging_dir = work_dir / "staging"
staging_dir.mkdir(parents=True, exist_ok=True)