Skip to content

restic find: muliple problems with command #5280

@wplapper

Description

@wplapper

Output of restic version

restic 0.17.3-dev (de9a040) compiled with go1.23.3 on linux/amd64

What backend/service did you use to store the repository?

local filesystem

Problem description / Steps to reproduce

issue restic -r .. find xxx -O '2025-01-01' -N '2020-01-01'. No output.
Swap -O with -N and the result lines appear!

Expected behavior

I expected an error message, since these given dates will never produce any meaningful result.

I will create an PR and change restic find so it will produce an appropriate error message.

Actual behavior

No output, no error message, return code 0.

Do you have any idea what may have caused this?

Missing test for pat.oldest >= pat.newest.

Did restic help you today? Did it make you happy in any way?

Yes, I like restic very much.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions