Skip to content

"Include" switch for rewrite command #4278

@akrabu

Description

@akrabu

Output of restic version

restic 0.15.1 compiled with go1.19.5 on darwin/amd64

What should restic do differently? Which functionality do you think we should add?

As with the "restore" command, it would be nice if "rewrite" also had an "include" switch so that you could include only one pattern while excluding the rest.

What are you trying to do? What problem would this solve?

I'd like to "forget" a snapshot, but keep the *.ost and *.pst files just in case. As it stands, I only see two ways of doing this. (A) Restore the snapshot, including only *.ost and *.pst, then create a new snapshot by backing up that folder, or (B) Create a directory listing of everything on the snapshot, remove all the *.ost and *.pst files, create an exclude file from that, then rewrite the snapshot using the exclude file.

Which, of course, would likely work... but an "--include" switch would be way easier :)

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

Hands down the best open source backup project out there 🙌

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions