소스 검색

clear cloud backups before generating more

Blaine Story 10 달 전
부모
커밋
fbad3f71c0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      roles/cloud-backups/templates/backup-to-b2.sh.j2

+ 2 - 0
roles/cloud-backups/templates/backup-to-b2.sh.j2

@@ -3,6 +3,8 @@
 
 LOG_FILE="/var/log/rclone/rclone-$(date +%Y-%m-%d).log"
 
+rm -f /opt/backups/*
+
 {% if backups is defined and 'containers' in backups %}
 {% if containers is defined %}
 {% for container in containers %}