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.
ā¦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!
The sensitive data you backed up will only be accessible to you or anyone else who has the password. But regardless, thereās currently no way in restic to remove certain files from existing snapshots.
One question about this, if I would go on to remove a file but the size of this file is not small (Idk if this has anything to do with anything but Iām still clarifying just in case), letās say itās 1GB, and Iām using rclone with cloud repos (I donāt know if anyone uses restic + rclone with local repos but who knows), would restic need to download and reupload all the data of all the snapshots (or at least a substantially really big amount of data) to delete the file from history? Iām guessing with local repositories this is not such a big deal because well I/O is much faster and it can modify stuff in place but remote repos are not so was kinda wondering this. Or does restic retrieves and reuploads the least amount of data as possible? Being in this case +/- the size of the file to delete.
The rewrite command only modified the directory metadata contained in a snapshot. This information may have to be reuploaded, but not the actual file contents.