fixing manual
All checks were successful
ci/woodpecker/push/regen-update-pipeline Pipeline was successful

This commit is contained in:
2025-09-20 23:28:53 -04:00
parent 5282547e7a
commit decd82d35e

View File

@@ -8,16 +8,14 @@ template_str = """
kind: pipeline kind: pipeline
type: docker type: docker
name: backup name: backup
when:
event: [ push, manual ]
steps: steps:
{% for backup in backups %} {% for backup in backups %}
- name: backup_{{ backup.name }} - name: backup_{{ backup.name }}
image: alpine:3 image: alpine:3
volumes: volumes:
- {{ backup.path }}:/mnt/{{ backup.name }} - {{ backup.path }}:/mnt/{{ backup.name }}
when:
event: [ push, manual, cron ]
cron: nightly-backup
commands: commands:
- echo "Backing up {{ backup.path }}" - echo "Backing up {{ backup.path }}"
- tar czf /tmp/{{ backup.name }}.tar.gz /mnt/{{ backup.name }} - tar czf /tmp/{{ backup.name }}.tar.gz /mnt/{{ backup.name }}