This commit is contained in:
2026-01-25 08:30:09 +01:00
parent c549fb6ff3
commit 776aa2e009
4 changed files with 364 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
from pathlib import Path
import zipfile
# =========================
# CONFIG
# =========================
SRC = Path(r"D:\medicusbackup\MEDICUS_2026-01-24_17-07-44.fbk")
DST = SRC.with_suffix(".zip")
# =========================
# ZIP MAX COMPRESSION
# =========================
with zipfile.ZipFile(
DST,
mode="w",
compression=zipfile.ZIP_DEFLATED,
compresslevel=9
) as z:
z.write(SRC, arcname=SRC.name)
print(f"ZIP created: {DST}")