#!/bin/bash
DATE=$(date +%Y-%m-%d)
BACKUP=/opt/ozymandias/backups
cp /opt/ozymandias/hl_whale_history.jsonl $BACKUP/whale_$DATE.jsonl 2>/dev/null
cp /opt/ozymandias/gex_history.db $BACKUP/gex_$DATE.db 2>/dev/null
cp /opt/ozymandias/funding_monitor_history.jsonl $BACKUP/funding_$DATE.jsonl 2>/dev/null
find $BACKUP -mtime +30 -delete
echo "Backup done: $DATE"
