Skip to content

Bugfix restic find: missing check for mtime --oldest/--newest#5310

Merged
MichaelEischer merged 4 commits into
restic:masterfrom
wplapper:cmd_find_check_mtime
Feb 18, 2026
Merged

Bugfix restic find: missing check for mtime --oldest/--newest#5310
MichaelEischer merged 4 commits into
restic:masterfrom
wplapper:cmd_find_check_mtime

Conversation

@wplapper

@wplapper wplapper commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

Add new backup-data.tar.gz which includes in directory 0/0/7 51 files with a mtime date range from 2014 to 2025.

Add missing check for --oldest >= --newest.

Add test which checks for --oldest >= --newest.

What does this PR change? What problem does it solve?

This PR fixes and issue described in #5280 and fixes the missing test for --oldest >= --newest.

Was the change previously discussed in an issue or on the forum?

See #5280

Checklist

  • I have added tests for all code changes.
    - [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I'm done! This pull request is ready for review.

@wplapper

Copy link
Copy Markdown
Contributor Author

I have decided to revert this PR to closed status to ease the pressure on the
maintainers of restic. Once the number of PRs has dropped considerably, I might
moved this PR back to the queue to be reviewed. In case you consider this PR
important, please contact me via the usual channels. Thank you!

@wplapper wplapper closed this May 30, 2025
@MichaelEischer

Copy link
Copy Markdown
Member

I have decided to revert this PR to closed status to ease the pressure on the
maintainers of restic. Once the number of PRs has dropped considerably, I might
moved this PR back to the queue to be reviewed. In case you consider this PR
important, please contact me via the usual channels. Thank you!

I'd actually prefer to keep the PRs open to give me the chance to decided which PRs appear more important to me.

@wplapper

wplapper commented Aug 3, 2025

Copy link
Copy Markdown
Contributor Author

I'd actually prefer to keep the PRs open to give me the chance to decided which PRs appear more important to me.

Michael, it would be good to know your priorities. Then I could work along these important issues. Thanks!

@wplapper wplapper reopened this Aug 3, 2025
@wplapper wplapper marked this pull request as draft November 21, 2025 10:42
@wplapper wplapper force-pushed the cmd_find_check_mtime branch from 3e2c96c to 3b5bbde Compare January 10, 2026 07:39
@wplapper wplapper changed the title find: fix missing check for mtime oldest/newest - issue #5280 find: Bugfix missing check for mtime oldest/newest - issue #5280 Jan 10, 2026
@wplapper wplapper changed the title find: Bugfix missing check for mtime oldest/newest - issue #5280 Bugfix restic find: missing check for mtime oldest/newest - issue #5280 Jan 10, 2026
@wplapper wplapper marked this pull request as ready for review January 10, 2026 09:21
@wplapper wplapper changed the title Bugfix restic find: missing check for mtime oldest/newest - issue #5280 Bugfix restic find: missing check for mtime --oldest/--newest Jan 10, 2026
Add new backup-data.tar.gz which includes in directory 0/0/7
51 files with a mtime date range from 2014 to 2025.

Add missing check for `--oldest` >= `--newest`.

Add test which checks for `--oldest` >= `--newest`.
cmd/restic/testdata/backup-data.tar.gz: converted to standard test repository

cmd/restic/cmd_find_integration_test.go:
added missing parameter for 'term'
@wplapper wplapper force-pushed the cmd_find_check_mtime branch from b07db3e to f5aa794 Compare February 9, 2026 17:10

@MichaelEischer MichaelEischer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

I've reworded the error message and the changelog a bit. The test is now also a lot closer. The error is also thrown for an empty repository, so there's no need to create an actual snapshot.

@MichaelEischer MichaelEischer enabled auto-merge (squash) February 18, 2026 21:09
@MichaelEischer MichaelEischer merged commit 8b567a9 into restic:master Feb 18, 2026
11 checks passed
@wplapper wplapper deleted the cmd_find_check_mtime branch February 19, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants