feat: AI Press Secretary - content generation and publishing platform
Features: - AI-powered post generation from brand profiles - Image generation with templates - Content planning - Telegram publishing - Social profile analyzer - Community organization support - Markdown to HTML conversion for Telegram - Inline AI chat for post editing Deploy: - Add deployment scripts for Linux servers - Add PowerShell deploy script for Windows - Add Nginx and SSL setup scripts - Add backup and restore scripts
This commit is contained in:
1 parent
81625b2e6f
commit
c6048aeea0
37 files changed
+7037
-225
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
# === Бэкап проекта ===
|
||||
|
||||
set -e
|
||||
|
||||
APP_DIR="/opt/pressa"
|
||||
BACKUP_DIR="/opt/backups"
|
||||
DATE=$(date +%Y%m%d_%H%M%S)
|
||||
BACKUP_NAME="pressa_$DATE.tar.gz"
|
||||
|
||||
echo "=== Создание бэкапа $BACKUP_NAME ==="
|
||||
|
||||
# Создание папки для бэкапов
|
||||
mkdir -p $BACKUP_DIR
|
||||
|
||||
# Создание архива
|
||||
cd $APP_DIR
|
||||
tar -czf $BACKUP_DIR/$BACKUP_NAME \
|
||||
cabinet_service/users.db \
|
||||
cabinet_service/media \
|
||||
--exclude='cabinet_service/media/*' \
|
||||
--exclude='venv' \
|
||||
--exclude='__pycache__' \
|
||||
--exclude='*.pyc'
|
||||
|
||||
# Удаление старых бэкапов (сохранять последние 7)
|
||||
find $BACKUP_DIR -name "pressa_*.tar.gz" -mtime +7 -delete
|
||||
|
||||
echo "✓ Бэкап создан: $BACKUP_DIR/$BACKUP_NAME"
|
||||
echo "Размер: $(du -h $BACKUP_DIR/$BACKUP_NAME | cut -f1)"
|
||||
echo ""
|
||||
echo "Список бэкапов:"
|
||||
ls -lh $BACKUP_DIR/pressa_*.tar.gz | tail -5
|
||||
|
||||
# Опционально: копировать на другой сервер
|
||||
# scp $BACKUP_DIR/$BACKUP_NAME user@backup-server:/backups/
|
||||
Reference in new issue
Block a user