瀏覽代碼

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 %}