From 42bd6c536c7df15fa9ff0ff3582a08dfefa3ffa8 Mon Sep 17 00:00:00 2001 From: AppFactory Portal Date: Thu, 26 Nov 2026 13:58:48 +0000 Subject: [PATCH] =?UTF-8?q?=C3=9Aprava=20skriptu=20create-backup.sh=20(por?= =?UTF-8?q?t=C3=A1l:=20jiri.uhlir59@gmail.com)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maintenance/create-backup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maintenance/create-backup.sh b/maintenance/create-backup.sh index 851e903..f6d0d83 100755 --- a/maintenance/create-backup.sh +++ b/maintenance/create-backup.sh @@ -2,6 +2,7 @@ set -euo pipefail APPFACTORY_ROOT="/opt/appfactory" +BACKUP_DIR="$APPFACTORY_ROOT/backups" echo "Starting AppFactory backup..." @@ -9,4 +10,7 @@ cd "$APPFACTORY_ROOT/workspace/appfactory-tools" bash scripts/backup-appfactory.sh +# Smaže běžné soubory starší než 10 dní přímo ve složce záloh +find "$BACKUP_DIR" -maxdepth 1 -type f -mtime +10 -delete + echo "Backup finished." \ No newline at end of file