Interrupted a backup, remove orphaned data?

I started a backup but it turned out the exclude filter was not set up right. When I stopped the backup with ctrl-c, some files that would have been excluded had already been backed up.

I corrected the filter and started the backup again. Restic is, as expected from what I understand, reusing the data already sent to the server. Once the backup is done, they’ll be included in the snapshot.

But what will happen with the files that were sent to the backup destination, but no longer are part of the snapshot because of the corrected exclude filter? Would they be considered orphaned data because they exist without any relationship to any snapshot - and how do I in such case remove this them?

Thanks!

1 Like

They will be removed when you run restic prune, which removes not used data from repository. Check docs for details.

2 Likes

Thank you :+1:t2:

1 Like