Repository navigation
Conversation
restic shows no progress unless stdout is a terminal, and backup runs log to /proc/1/fd/1, so a day-long first upload was silent from start to finish and read as frozen. RESTIC_PROGRESS_FPS is restic's documented switch for that; 0.0166 is one status line a minute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XWoa1a1upTria7ntq56x3B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The first backup on the server has been running for over an hour with nothing in the log after
no parent snapshot found, will read all files, which looks frozen. It isn't: an hourly tick loggedprevious run still going, skipping, and that line only appears while the run holds its lock.restic shows no progress when stdout isn't a terminal (
calculateProgressIntervalin restic 0.16.4'scmd/restic/progress.goreturns 0), and every backup run logs to/proc/1/fd/1. So a run that takes most of a day is silent until it ends.Changes
docker-compose.yml:RESTIC_PROGRESS_FPS=${RESTIC_PROGRESS_FPS:-0.0166}on the backup service, i.e. one status line a minute. When the variable is set, restic prints progress even without a terminal. A normal hourly run finishes well inside a minute and adds about one line..env.example: the same variable, with a comment.ops/backup/README.md("A large first upload"):skippingline proves the run is alive;rclone size nas:…anddocker statsshow progress on demand.Testing
docker compose configshowsRESTIC_PROGRESS_FPS: "0.0166"on the backup service.fps > 0gives a non-zero interval regardless of whether there's a terminal.Generated by Claude Code