auto: sync 2026-05-28
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"modno": 12,
|
"modno": 14,
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"instance": "nuclide.systems",
|
"instance": "nuclide.systems",
|
||||||
"repos": [
|
"repos": [
|
||||||
@@ -59,17 +59,17 @@
|
|||||||
"/mnt/pve/unas/backup/home-assistant",
|
"/mnt/pve/unas/backup/home-assistant",
|
||||||
"/mnt/pve/unas/backup/immich",
|
"/mnt/pve/unas/backup/immich",
|
||||||
"/mnt/pve/unas/backup/nextcloud",
|
"/mnt/pve/unas/backup/nextcloud",
|
||||||
"/mnt/pve/unas/services/arcane",
|
|
||||||
"/mnt/pve/unas/services/arr-stack",
|
|
||||||
"/mnt/pve/unas/services/coder",
|
"/mnt/pve/unas/services/coder",
|
||||||
"/mnt/pve/unas/services/gitea",
|
"/mnt/pve/unas/services/gitea",
|
||||||
"/mnt/pve/unas/services/gluetun",
|
|
||||||
"/mnt/pve/unas/services/karakeep",
|
"/mnt/pve/unas/services/karakeep",
|
||||||
"/mnt/pve/unas/services/memos",
|
"/mnt/pve/unas/services/memos",
|
||||||
"/mnt/pve/unas/services/n8n",
|
"/mnt/pve/unas/services/n8n",
|
||||||
"/mnt/pve/unas/services/nextcloud",
|
"/mnt/pve/unas/services/nextcloud",
|
||||||
"/mnt/pve/unas/services/pocketid-backup",
|
"/mnt/pve/unas/services/pocketid-backup",
|
||||||
"/mnt/pve/unas/services/traccar"
|
"/mnt/pve/unas/services/traccar",
|
||||||
|
"/mnt/pve/unas/services/vaultwarden",
|
||||||
|
"/mnt/pve/unas/services/shared-db-garage",
|
||||||
|
"/mnt/pve/unas/media/documents/public/paperless-ngx"
|
||||||
],
|
],
|
||||||
"schedule": {
|
"schedule": {
|
||||||
"cron": "0 1 * * 1,2,3,4,5",
|
"cron": "0 1 * * 1,2,3,4,5",
|
||||||
@@ -91,6 +91,22 @@
|
|||||||
"actionCommand": {
|
"actionCommand": {
|
||||||
"command": "bash /opt/backrest/scripts/pocketid-prestage.sh"
|
"command": "bash /opt/backrest/scripts/pocketid-prestage.sh"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditions": [
|
||||||
|
"CONDITION_SNAPSHOT_START"
|
||||||
|
],
|
||||||
|
"actionCommand": {
|
||||||
|
"command": "bash /opt/backrest/scripts/garage-prestage.sh"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditions": [
|
||||||
|
"CONDITION_SNAPSHOT_START"
|
||||||
|
],
|
||||||
|
"actionCommand": {
|
||||||
|
"command": "bash /opt/backrest/scripts/n8n-prestage.sh"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CT104="root@192.168.1.40"
|
||||||
|
STAGING="/mnt/pve/unas/services/shared-db-garage"
|
||||||
|
|
||||||
|
mkdir -p "$STAGING"
|
||||||
|
|
||||||
|
# Rsync Garage data and meta dirs (hot copy — Garage is append-only, safe to snapshot)
|
||||||
|
rsync -rlptD --no-owner --no-group --delete "$CT104":/opt/stacks/shared-db/garage/data/ "$STAGING/data/"
|
||||||
|
rsync -rlptD --no-owner --no-group --delete "$CT104":/opt/stacks/shared-db/garage/meta/ "$STAGING/meta/"
|
||||||
|
|
||||||
|
echo "[$(date)] garage-prestage: done ($(du -sh $STAGING | cut -f1))"
|
||||||
Executable
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CT104="root@192.168.1.40"
|
||||||
|
STAGING="/mnt/pve/unas/services/n8n"
|
||||||
|
|
||||||
|
# Rsync n8n data (config, nodes, storage) — skip logs and temp files
|
||||||
|
rsync -rlptD --no-owner --no-group --delete \
|
||||||
|
--exclude='*.log' \
|
||||||
|
--exclude='crash.journal' \
|
||||||
|
--exclude='*.json' \
|
||||||
|
"$CT104":/opt/stacks/n8n/data/ "$STAGING/"
|
||||||
|
|
||||||
|
echo "[$(date)] n8n-prestage: done"
|
||||||
@@ -2,16 +2,16 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
STAGING="/mnt/pve/unas/services/pocketid-backup"
|
STAGING="/mnt/pve/unas/services/pocketid-backup"
|
||||||
CT110="root@192.168.1.5"
|
CT109="root@192.168.1.8"
|
||||||
|
|
||||||
# Export inside container then docker cp to host
|
# Export inside container then docker cp to host
|
||||||
ssh "$CT110" 'docker exec pocket-id /app/pocket-id export /app/pocket-id-export.zip && docker cp pocket-id:/app/pocket-id-export.zip /tmp/pocketid-export.zip && docker exec pocket-id rm /app/pocket-id-export.zip'
|
ssh "$CT109" 'docker exec pocket-id /app/pocket-id export /app/pocket-id-export.zip && docker cp pocket-id:/app/pocket-id-export.zip /tmp/pocketid-export.zip && docker exec pocket-id rm /app/pocket-id-export.zip'
|
||||||
|
|
||||||
# Pull to staging on UNAS (accessible from CT 103)
|
# Pull to staging on UNAS (accessible from CT 103)
|
||||||
scp "$CT110":/tmp/pocketid-export.zip "$STAGING/pocketid-export.zip"
|
scp "$CT109":/tmp/pocketid-export.zip "$STAGING/pocketid-export.zip"
|
||||||
scp -r "$CT110":/opt/stacks/pocketid/data/keys "$STAGING/"
|
scp -r "$CT109":/opt/stacks/pocketid/data/keys "$STAGING/"
|
||||||
|
|
||||||
# Cleanup CT 110 temp
|
# Cleanup CT 109 temp
|
||||||
ssh "$CT110" 'rm -f /tmp/pocketid-export.zip'
|
ssh "$CT109" 'rm -f /tmp/pocketid-export.zip'
|
||||||
|
|
||||||
echo "[$(date)] pocketid-prestage: done"
|
echo "[$(date)] pocketid-prestage: done"
|
||||||
|
|||||||
Reference in New Issue
Block a user