8 lines
283 B
Bash
Executable File
8 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
# Qdrant daily backup
|
|
DEST=/opt/qdrant-backup/$(date +%Y%m%d)
|
|
mkdir -p $DEST
|
|
cp -r /opt/qdrant-data/collections/ $DEST/
|
|
find /opt/qdrant-backup -maxdepth 1 -mtime +7 -exec rm -rf {} \;
|
|
echo "$(date) Qdrant backup: $(du -sh $DEST | cut -f1)" >> /var/log/qdrant-backup.log
|