🚀 Auto-deploy: BrainKP atualizado em 22/06/2026 19:38:12

This commit is contained in:
2026-06-22 19:38:12 +00:00
parent a11ba1cb91
commit 59f8653ffd
+19 -6
View File
@@ -12,12 +12,25 @@ echo "[$(date)] Backup Apps started"
rm -rf "$BACKUP_DIR" rm -rf "$BACKUP_DIR"
mkdir -p "$BACKUP_DIR" mkdir -p "$BACKUP_DIR"
# Backup important apps configs # Loop over all directories in /root/Apps/
tar -czf "$BACKUP_DIR/apps-configs-$DATE.tar.gz" \ cd /root/Apps
/root/Apps/Camila \ for APP_DIR in */; do
/root/Apps/RAG \ # Remove trailing slash
/root/Apps/VOXDO \ APP_NAME=${APP_DIR%/}
2>/dev/null || true
# Skip if it's not a directory or if it is the backup-ui/BrainKP itself (to prevent recursion/lock if needed, though they are fine)
[ -d "$APP_NAME" ] || continue
echo "Backing up app: $APP_NAME"
# Compress each app into its own tar.gz file, excluding heavy unnecessary folders
tar -czf "$BACKUP_DIR/${APP_NAME}-$DATE.tar.gz" \
--exclude="node_modules" \
--exclude="venv" \
--exclude=".venv" \
--exclude="__pycache__" \
"$APP_NAME" 2>/dev/null || true
done
# Sync to Google Drive # Sync to Google Drive
rclone copy "$BACKUP_DIR" "$DEST" --progress rclone copy "$BACKUP_DIR" "$DEST" --progress