Commit Graph

20 Commits

Author SHA1 Message Date
ceee89f86b fix(backup): treat 7z exit code 1 (warning) as success in archive_staging
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 14s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 15s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 15s
Haven Notify Build and Deploy / Test Haven Notify (push) Successful in 2m8s
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (push) Has been skipped
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 29s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 7s
Exit code 1 from 7z means a non-fatal warning — the archive IS created,
just some files couldn't be compressed (e.g. broken symlinks, special
files). Previously the function required filtered output to be empty
alongside rc=1, causing any non-errno=2 stderr line to abort the entire
backup and discard the archive.

Now any rc=1 is treated as success (warning is still logged).
2026-07-24 06:10:41 -03:00
0f7c56d7eb fixing control plane backup too
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 3s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 4s
2026-07-22 08:38:47 -03:00
cafbb01200 updating flow and notify endpoint
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 8s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 8s
2026-07-22 08:32:55 -03:00
26984db5a6 fix(k8s): support control-plane tests on slim runner
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 2s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 3s
2026-07-21 18:13:42 -03:00
260b0196f5 fix(k8s): harden control-plane backup safety
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 1s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Failing after 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 2s
2026-07-21 16:36:01 -03:00
dcbb8eddc2 feat(k8s): back up control plane configuration
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 3s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 3s
2026-07-21 15:52:43 -03:00
45556833c0 removing default from excluded namespaces
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 28s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 29s
2026-07-15 06:21:31 -03:00
43351abb11 k8s nfs backup: add rsync staging path and per-run staging cleanup
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 8s
- Add BACKUP_STAGING_PATH + RSYNC_BIN for staging before archive
- Add cleanup_run_staging to EXIT trap to remove staging dir
- Extend test harness for staging scenarios
2026-07-14 09:36:39 -03:00
2bd9e90f00 k8s nfs backup: exclude namespaces from scaling, isolate per-run state, harden failure handling
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 7s
- Add EXCLUDED_NAMESPACES (default kube-system,kube-public,kube-node-lease,default); excluded folders are backed up but never scaled
- Use a per-run state dir via mktemp -d so stale .state files from an earlier run can't leak into restores
- Partial folder-backup failure now exits 0 (only zero successes fails); retention runs even on partial failure
- Remove dead SCALE_TIMEOUT_SECONDS config; document SCALE_WAIT_SECONDS
- Add .gitattributes to keep *.sh at LF
- Extend test harness to 44 passing assertions covering exclusions, per-run state, partial/all-failed/empty scenarios
2026-07-14 09:02:06 -03:00
7b46d789ed refactor: make NFS backup script testable with minimal config vars, add test harness + Gitea workflow, address review nits
Some checks failed
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 28s
Check scripts syntax / check-scripts-syntax (push) Successful in 1m2s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 2m5s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Failing after 23s
2026-07-13 08:59:38 -03:00
4cdb79dcd5 Merge branch 'main' of git.ivanch.me:ivanch/server-scripts
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
2026-07-04 20:21:13 -03:00
94deda4372 simplifying automated nfs backup 2026-07-04 20:21:10 -03:00
8f701dc5c8 Fix bash syntax error in backup_folder return logic
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 31s
The arithmetic test `(( rc == 0 || (rc == 1 && -z "$filtered_output") ))`
breaks the bash parser when filtered_output is a multiline string. Split
the test so the -z check runs in a [[ ]] context instead.
2026-06-27 12:39:14 -03:00
2f2ad759c1 more fixes
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
2026-06-21 12:50:29 -03:00
7ac6d16180 fixes and improves
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 40s
2026-06-21 12:09:14 -03:00
36a0444344 updating script
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 40s
2026-06-20 18:53:59 -03:00
941b0f97e3 fixing script
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 42s
2026-06-16 08:50:10 -03:00
4149e15fea small changes
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 30s
2026-05-26 20:05:12 -03:00
2de4ca75a1 fixing counter
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 50s
2026-05-26 15:50:10 -03:00
4870ede3ad adding k8s pack
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 34s
2026-05-21 12:45:07 -03:00