auto: sync 2026-05-29

This commit is contained in:
2026-05-29 03:15:02 +02:00
parent ec01ccfdfb
commit 3d89e18d23
2 changed files with 100 additions and 4 deletions
+90 -2
View File
@@ -1,5 +1,5 @@
{ {
"modno": 14, "modno": 16,
"version": 4, "version": 4,
"instance": "nuclide.systems", "instance": "nuclide.systems",
"repos": [ "repos": [
@@ -69,7 +69,8 @@
"/mnt/pve/unas/services/traccar", "/mnt/pve/unas/services/traccar",
"/mnt/pve/unas/services/vaultwarden", "/mnt/pve/unas/services/vaultwarden",
"/mnt/pve/unas/services/shared-db-garage", "/mnt/pve/unas/services/shared-db-garage",
"/mnt/pve/unas/media/documents/public/paperless-ngx" "/mnt/pve/unas/media/documents/public/paperless-ngx",
"/mnt/pve/unas/services/open-webui"
], ],
"schedule": { "schedule": {
"cron": "0 1 * * 1,2,3,4,5", "cron": "0 1 * * 1,2,3,4,5",
@@ -107,6 +108,39 @@
"actionCommand": { "actionCommand": {
"command": "bash /opt/backrest/scripts/n8n-prestage.sh" "command": "bash /opt/backrest/scripts/n8n-prestage.sh"
} }
},
{
"conditions": [
"CONDITION_SNAPSHOT_SUCCESS"
],
"actionGotify": {
"baseUrl": "http://192.168.1.40:10003",
"token": "AtIMGOYcZsb5HfO",
"priorityDefault": 3,
"template": "Plan: {{ .Plan.Id }}\nRepo: {{ .Repo.Id }}\nFiles new: {{ .SnapshotStats.FilesNew }}\nSize added: {{ formatSizeBytes .SnapshotStats.DataAdded }}\nDuration: {{ .Duration }}\nSnapshot: {{ .SnapshotId }}",
"titleTemplate": "\u2713 Backrest: {{ .Plan.Id }} succeeded"
}
},
{
"conditions": [
"CONDITION_SNAPSHOT_ERROR",
"CONDITION_SNAPSHOT_WARNING"
],
"actionGotify": {
"baseUrl": "http://192.168.1.40:10003",
"token": "AtIMGOYcZsb5HfO",
"priorityDefault": 8,
"template": "Plan: {{ .Plan.Id }}\nRepo: {{ .Repo.Id }}\nError: {{ .Error }}\nDuration: {{ .Duration }}",
"titleTemplate": "\u2717 Backrest: {{ .Plan.Id }} FAILED"
}
},
{
"conditions": [
"CONDITION_SNAPSHOT_START"
],
"actionCommand": {
"command": "bash /opt/backrest/scripts/openwebui-prestage.sh"
}
} }
] ]
}, },
@@ -126,8 +160,35 @@
"monthly": 6, "monthly": 6,
"yearly": 1 "yearly": 1
} }
},
"hooks": [
{
"conditions": [
"CONDITION_SNAPSHOT_SUCCESS"
],
"actionGotify": {
"baseUrl": "http://192.168.1.40:10003",
"token": "AtIMGOYcZsb5HfO",
"priorityDefault": 3,
"template": "Plan: {{ .Plan.Id }}\nRepo: {{ .Repo.Id }}\nFiles new: {{ .SnapshotStats.FilesNew }}\nSize added: {{ formatSizeBytes .SnapshotStats.DataAdded }}\nDuration: {{ .Duration }}\nSnapshot: {{ .SnapshotId }}",
"titleTemplate": "\u2713 Backrest: {{ .Plan.Id }} succeeded"
} }
}, },
{
"conditions": [
"CONDITION_SNAPSHOT_ERROR",
"CONDITION_SNAPSHOT_WARNING"
],
"actionGotify": {
"baseUrl": "http://192.168.1.40:10003",
"token": "AtIMGOYcZsb5HfO",
"priorityDefault": 8,
"template": "Plan: {{ .Plan.Id }}\nRepo: {{ .Repo.Id }}\nError: {{ .Error }}\nDuration: {{ .Duration }}",
"titleTemplate": "\u2717 Backrest: {{ .Plan.Id }} FAILED"
}
}
]
},
{ {
"id": "media-backup-plan", "id": "media-backup-plan",
"repo": "media-repo", "repo": "media-repo",
@@ -144,7 +205,34 @@
"monthly": 6, "monthly": 6,
"yearly": 1 "yearly": 1
} }
},
"hooks": [
{
"conditions": [
"CONDITION_SNAPSHOT_SUCCESS"
],
"actionGotify": {
"baseUrl": "http://192.168.1.40:10003",
"token": "AtIMGOYcZsb5HfO",
"priorityDefault": 3,
"template": "Plan: {{ .Plan.Id }}\nRepo: {{ .Repo.Id }}\nFiles new: {{ .SnapshotStats.FilesNew }}\nSize added: {{ formatSizeBytes .SnapshotStats.DataAdded }}\nDuration: {{ .Duration }}\nSnapshot: {{ .SnapshotId }}",
"titleTemplate": "\u2713 Backrest: {{ .Plan.Id }} succeeded"
} }
},
{
"conditions": [
"CONDITION_SNAPSHOT_ERROR",
"CONDITION_SNAPSHOT_WARNING"
],
"actionGotify": {
"baseUrl": "http://192.168.1.40:10003",
"token": "AtIMGOYcZsb5HfO",
"priorityDefault": 8,
"template": "Plan: {{ .Plan.Id }}\nRepo: {{ .Repo.Id }}\nError: {{ .Error }}\nDuration: {{ .Duration }}",
"titleTemplate": "\u2717 Backrest: {{ .Plan.Id }} FAILED"
}
}
]
} }
], ],
"auth": { "auth": {
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
set -e
CT104="root@192.168.1.40"
STAGING="/mnt/pve/unas/services/open-webui"
rsync -rlptD --no-owner --no-group --delete \
--exclude='cache/' --exclude='*.tmp' --exclude='*.log' \
"$CT104":/opt/stacks/ai/open-webui/data/ "$STAGING/"
echo "[$(date)] openwebui-prestage: done ($(du -sh $STAGING | cut -f1))"