Commit eee677a
Sync dev to main (#109)
* deps(deps): bump github.com/gdamore/tcell/v2 from 2.13.5 to 2.13.6 in the security-patches group (#106)
deps(deps): bump github.com/gdamore/tcell/v2
Bumps the security-patches group with 1 update: [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell).
Updates `github.com/gdamore/tcell/v2` from 2.13.5 to 2.13.6
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv3.md)
- [Commits](gdamore/tcell@v2.13.5...v2.13.6)
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
dependency-version: 2.13.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security-patches
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* deps(deps): bump golang.org/x/text from 0.32.0 to 0.33.0 (#107)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.32.0 to 0.33.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.32.0...v0.33.0)
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-version: 0.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* deps(deps): bump golang.org/x/term from 0.38.0 to 0.39.0 (#108)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.38.0 to 0.39.0.
- [Commits](golang/term@v0.38.0...v0.39.0)
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-version: 0.39.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Simplify warning message for missing systemd units
Updated the warning log in captureCommandOutput to provide a clearer message when a systemd unit is not found, suggesting to set BACKUP_FIREWALL_RULES=false to disable. Removed redundant information from the log.
* Clean rclone error output for improved logging
Introduces the cleanRcloneOutput function to remove timestamps and 'ERROR :' prefixes from rclone output, ensuring cleaner error messages for logs and notifications. Updates classifyRemoteError to use the cleaned output and avoid log parser issues.
* Simplify ZFS collection warning message
Updated the warning log when ZFS usage is not detected to be more concise and direct, improving clarity for users configuring BACKUP_ZFS_CONFIG.
* Improve warning message for missing metadata
Updated the warning log in LocalStorage.List to clarify when .metadata files are missing and fallback to filename metadata is used.
* Add firewall rules backup option to install wizards
Introduces a firewall rules backup toggle (BACKUP_FIREWALL_RULES, default false) to both CLI and TUI installation wizards. Updates configuration parsing, templates, documentation, and tests to reflect the new default and user-selectable option.
* Add extensive unit tests for backup collector
This commit adds comprehensive unit tests for the backup collector, including edge cases and error handling for file sampling, directory sampling, PBS authentication, configuration validation, and worker root computation. It also introduces test coverage for context cancellation, exclusion patterns, dry-run behavior, and normalization of configuration defaults. Minor refactoring in collector.go enables easier mocking of OS functions for testing.
* fix: simplify metadata loading logic to be config-independent
Remove BundleAssociatedFiles config dependency from loadMetadata.
Now uses simple logic: bundle files → read inside, non-bundle → read sidecar.
* Update INSTALL.md
* Refactor environment detection for testability
Replaces direct calls to system functions in detect.go with function variables to enable deterministic testing. Adds a comprehensive deterministic test suite for environment detection logic in detect_deterministic_test.go. No production logic is changed; this improves test coverage and maintainability.
* Add detailed bootstrap debug logging to workflows
Introduces granular debug logging steps to installation, upgrade, newkey, and main workflows using DebugStartBootstrap and DebugStepBootstrap. This improves traceability and diagnostics for CLI and TUI flows, session logs, and orchestrator initialization, including storage, notification, and backup steps. Also refactors session log initialization to support configurable log levels and output mirroring.
* Update collector.go
* Fix error message case in symlink-related tests
Updated test assertions in collector_test.go to match the correct lowercase error messages for symlink creation, read, and file replacement failures.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 25ca359 commit eee677a
49 files changed
Lines changed: 4410 additions & 351 deletions
File tree
- cmd/proxsave
- docs
- internal
- backup
- config
- templates
- environment
- logging
- orchestrator
- storage
- tui/wizard
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
46 | | - | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
| 58 | + | |
54 | 59 | | |
55 | | - | |
56 | | - | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
65 | 70 | | |
66 | | - | |
67 | | - | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | | - | |
73 | | - | |
| 77 | + | |
74 | 78 | | |
| 79 | + | |
75 | 80 | | |
| 81 | + | |
76 | 82 | | |
77 | | - | |
78 | | - | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
| 86 | + | |
81 | 87 | | |
82 | | - | |
83 | | - | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
| 94 | + | |
88 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
| 104 | + | |
92 | 105 | | |
| 106 | + | |
93 | 107 | | |
94 | | - | |
95 | 108 | | |
96 | 109 | | |
97 | 110 | | |
98 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
99 | 114 | | |
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
103 | 118 | | |
104 | 119 | | |
105 | 120 | | |
| 121 | + | |
106 | 122 | | |
107 | 123 | | |
108 | 124 | | |
| |||
112 | 128 | | |
113 | 129 | | |
114 | 130 | | |
| 131 | + | |
115 | 132 | | |
116 | 133 | | |
117 | 134 | | |
| |||
121 | 138 | | |
122 | 139 | | |
123 | 140 | | |
| 141 | + | |
124 | 142 | | |
125 | 143 | | |
126 | 144 | | |
| |||
197 | 215 | | |
198 | 216 | | |
199 | 217 | | |
200 | | - | |
| 218 | + | |
201 | 219 | | |
202 | 220 | | |
203 | 221 | | |
| |||
269 | 287 | | |
270 | 288 | | |
271 | 289 | | |
272 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
273 | 295 | | |
274 | 296 | | |
275 | 297 | | |
| |||
279 | 301 | | |
280 | 302 | | |
281 | 303 | | |
| 304 | + | |
282 | 305 | | |
283 | 306 | | |
284 | 307 | | |
| 308 | + | |
285 | 309 | | |
286 | 310 | | |
287 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
288 | 317 | | |
289 | 318 | | |
290 | 319 | | |
291 | 320 | | |
292 | | - | |
| 321 | + | |
| 322 | + | |
293 | 323 | | |
294 | 324 | | |
295 | 325 | | |
| |||
298 | 328 | | |
299 | 329 | | |
300 | 330 | | |
| 331 | + | |
301 | 332 | | |
302 | 333 | | |
303 | 334 | | |
| |||
309 | 340 | | |
310 | 341 | | |
311 | 342 | | |
312 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
313 | 346 | | |
| 347 | + | |
314 | 348 | | |
315 | 349 | | |
316 | 350 | | |
| |||
326 | 360 | | |
327 | 361 | | |
328 | 362 | | |
| 363 | + | |
| 364 | + | |
329 | 365 | | |
330 | 366 | | |
331 | 367 | | |
332 | 368 | | |
| 369 | + | |
333 | 370 | | |
334 | 371 | | |
335 | 372 | | |
336 | 373 | | |
337 | 374 | | |
338 | 375 | | |
| 376 | + | |
339 | 377 | | |
340 | 378 | | |
341 | 379 | | |
342 | 380 | | |
343 | 381 | | |
| 382 | + | |
344 | 383 | | |
345 | 384 | | |
346 | 385 | | |
| |||
353 | 392 | | |
354 | 393 | | |
355 | 394 | | |
356 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
357 | 398 | | |
358 | 399 | | |
359 | 400 | | |
| |||
381 | 422 | | |
382 | 423 | | |
383 | 424 | | |
| 425 | + | |
384 | 426 | | |
385 | 427 | | |
386 | 428 | | |
| |||
492 | 534 | | |
493 | 535 | | |
494 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
495 | 553 | | |
496 | 554 | | |
497 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
285 | 317 | | |
286 | 318 | | |
287 | 319 | | |
| |||
0 commit comments