i18n complete: all 16 components translated (CZ/HE/RU/UA)
- Custom i18n provider with React Context + localStorage - Hebrew RTL support (dir=rtl on html) - All pages + components use t() calls - FullCalendar + dates locale-aware - Language selector in Settings wired to context Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
22
backup.sh
Executable file
22
backup.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
BACKUP_DIR="/opt/task-team/backups"
|
||||
DATE=$(date +%Y%m%d_%H%M)
|
||||
PGDUMP="/usr/lib/postgresql/18/bin/pg_dump"
|
||||
mkdir -p $BACKUP_DIR
|
||||
|
||||
# Dump all databases
|
||||
PGPASSWORD="TaskTeam2026!" $PGDUMP -h 10.10.10.10 -U taskteam -d taskteam -F c -f "$BACKUP_DIR/taskteam_$DATE.dump"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
# Compress
|
||||
gzip -f "$BACKUP_DIR/taskteam_$DATE.dump" 2>/dev/null
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') OK: taskteam_$DATE.dump.gz"
|
||||
else
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') FAIL: pg_dump exited with error"
|
||||
fi
|
||||
|
||||
# Keep last 7 daily backups
|
||||
find $BACKUP_DIR -name "*.dump.gz" -mtime +7 -delete
|
||||
find $BACKUP_DIR -name "*.dump" -mtime +7 -delete
|
||||
|
||||
ls -lh $BACKUP_DIR/ | tail -5
|
||||
Reference in New Issue
Block a user