Removing specific file/directory from all restic snapshots?

Hi!

Is there a possibility of removing some file/directory from all restic backup snapshots as if it had not ever existed without recreating a full backup from scratch?

Basically, I would like to remove items from existing backups, which should not have been ever backed up in the first place.

Hi,

Currently there is no official way to do this.

You can try to compile your own restic binary with this pull request:

But it’s better to have backup of whole repo. It’s not widely tested.

@jarm0 What problem are you wanting to solve by doing this? The file(s) will only take up the space needed for them once.

@rawtaz as mentioned I would like to remove some files from backup which should not have ever been backed up (sensitive data for example).

1 Like

…or when I forget to exclude a .Trash folder over 4 months period, when I finally realize it’s been backing up tons of GB of production videos that were never intended to be backup up at all which made it into the repository during their temporary stay in the trash bin. Ahhh!

1 Like