Fix: Follow correct service logs during manual backup

PROBLEM:
- Manual backup starts pbs-backup-manual.service
- But journalctl was following pbs-backup.service logs
- User saw no output during backup execution

FIX:
- Changed journalctl to follow pbs-backup-manual.service
- Applied to both manual backup locations:
  - Menu option 4 handler
  - run_backup_now() function

Now verbose backup progress displays correctly during manual runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zaphod-black 2025-11-01 19:36:34 -05:00
parent f88cba76bb
commit 9486eb6a8c

View file

@ -1018,7 +1018,7 @@ run_backup_now() {
MONITOR_PID=$!
# Follow logs in foreground (will be killed by monitor when backup completes)
journalctl -fu pbs-backup.service 2>/dev/null || true
journalctl -fu pbs-backup-manual.service 2>/dev/null || true
# Wait for monitor to finish
wait $MONITOR_PID 2>/dev/null
@ -1173,7 +1173,7 @@ main() {
MONITOR_PID=$!
# Follow logs in foreground (will be killed by monitor when backup completes)
journalctl -fu pbs-backup.service 2>/dev/null || true
journalctl -fu pbs-backup-manual.service 2>/dev/null || true
# Wait for monitor to finish
wait $MONITOR_PID 2>/dev/null