Add backup file size logging

This commit is contained in:
BigDaddyAman 2025-11-25 05:13:30 +08:00
parent e197482251
commit ae6ed0f9c2
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,10 @@ def run_backup():
# -------------------------- # --------------------------
# Upload to R2 # Upload to R2
# -------------------------- # --------------------------
if os.path.exists(compressed_file):
size = os.path.getsize(compressed_file)
log(f"[INFO] Final backup size: {size/1024/1024:.2f} MB")
try: try:
client = boto3.client( client = boto3.client(
's3', 's3',