- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
#!/bin/bash
|
||
|
||
# Простой ежедневный бэкап Git репозитория
|
||
# Добавить в crontab: 0 2 * * * /var/www/fastuser/data/www/crm.clientright.ru/daily_backup.sh
|
||
|
||
cd /var/www/fastuser/data/www/crm.clientright.ru
|
||
|
||
# Проверяем наличие изменений
|
||
if ! git diff --quiet || ! git diff --cached --quiet; then
|
||
echo "$(date): Найдены изменения, создаем бэкап"
|
||
|
||
# Добавляем все изменения
|
||
git add .
|
||
|
||
# Создаем коммит с временной меткой
|
||
git commit -m "Daily backup $(date '+%Y-%m-%d %H:%M:%S')"
|
||
|
||
# Создаем архив
|
||
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
|
||
ARCHIVE_NAME="crm_daily_${TIMESTAMP}.tar.gz"
|
||
|
||
tar --exclude='.git' --exclude='cache' --exclude='logs' --exclude='test' \
|
||
-czf "/tmp/$ARCHIVE_NAME" .
|
||
|
||
# Перемещаем архив в папку backups
|
||
mkdir -p backups
|
||
mv "/tmp/$ARCHIVE_NAME" "backups/"
|
||
|
||
echo "$(date): Бэкап создан: backups/$ARCHIVE_NAME"
|
||
else
|
||
echo "$(date): Нет изменений для бэкапа"
|
||
fi
|
||
|