All checks were successful
Apply Kuberentes Configs / update-repo (push) Successful in 0s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 2s
Apply Kuberentes Configs / notify-on-failure (push) Has been skipped
Manage Jellyfin Playlists / update-repo (push) Successful in 0s
Manage Jellyfin Playlists / run-python (push) Successful in 48s
Manage Jellyfin Playlists / notify-on-failure (push) Has been skipped
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: ZFS Backup
|
|
on:
|
|
schedule:
|
|
- cron: 0 1 * * *
|
|
workflow_dispatch:
|
|
jobs:
|
|
update-infrastructure:
|
|
runs-on: [home-server]
|
|
steps:
|
|
- name: run syncoid
|
|
run: |
|
|
zpool status
|
|
echo ""
|
|
zfs list
|
|
echo ""
|
|
syncoid \
|
|
--recursive \
|
|
--no-privilege-elevation \
|
|
data-ssd/data \
|
|
backup/data
|
|
|
|
syncoid \
|
|
--recursive \
|
|
--no-privilege-elevation \
|
|
data-ssd/media \
|
|
backup/media
|
|
|
|
notify-on-failure:
|
|
runs-on: home-server
|
|
needs: update-infrastructure
|
|
if: failure()
|
|
uses: ./.gitea/workflows/notify-ntfy.yml
|
|
secrets:
|
|
NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }}
|
|
with:
|
|
title: "ZFS Backup Failed"
|
|
message: |
|
|
Failed to backup ZFS datasets
|
|
Workflow: ${{ gitea.workflow }}
|
|
Repository: ${{ gitea.repository }}
|
|
Job: update-infrastructure
|
|
Status: ${{ needs.update-infrastructure.result }}
|
|
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
|
priority: "high"
|
|
tags: "rotating_light,backup" |