Skip to content

Omit snapshot creation if there was no change #662

@jayme-github

Description

@jayme-github

Feature request/discussion about implementing a switch that omits snapshot creation if there was no change in metadata, and data.

From IRC:

is there a way to omit snapshot creation if there was no change at all?
(I have a large dataset that does not chnange very often, like once a month, but I would like restic to run at least once a day)
jayme: no, that's currently not possible with restic alone. every run of 'restic backup' will create a snapshot
jayme: but you can easily script that: use 'find' to find files that have been modified since the last backup, if there are any run 'restic backup', otherwise do nothing
fd0: thanks for your response. Do you think that feature is worth an issue? Or do you want that to stay out of restic?
jayme: it wouldn't take much code to add this... I'm not sure if it's worth it though
jayme: if you create an issue in the GitHub issue tracker, we can discuss it (and people can find it)
jayme: we'd need to talk about what a "change" is for you
jayme: only content? or metadata+content?
jayme: what about a file that has the same content as before, but was moved and has a new inode?
fd0: with "change" I ment "anything worh mentioning" e.g. move, metadata, content
just want to avoid creating "empty" snapshots as thats probably a waste of space/time

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