TrueCloud backup doesn't respect "keep last" if "use snapshot" is enabled

I’m running TrueNAS Scale version 25.04.2.1. I tried creating a bug on Jira, but even after creating an Atlassian account, it said I didn’t have permissions to create a new ticket.

Whenever I create a TrueCloud backup task with the “use snapshot” option enabled, it keeps old versions on Storj indefinitely. I typically set “keep last” to 7. I noticed recently my Storj usage had increased dramatically. When I looked at my TrueCloud tasks, they all had 40+ versions. I deleted one of the tasks, deleted the files from Storj, and re-created it with the “use snapshot” option not enabled, and everything worked correctly with it only keeping the last 7 versions. I’ve been able to repeat this multiple times across different TrueCloud tasks. As soon as I enable “use snapshot”, the “keep last” setting is no longer respected, and my Storj usage quickly increases. I am able to delete single snapshots at a time manually. Is this a known issue? How can I get a bug created? Any help is greatly appreciated!

I took a look at mine. My backups have the Keep Last set to 1 and under Advanced Options the Use Snapshot is checked. My understanding from the docs and the tool tip is that particular snapshot is supposed to be temporary specific for making a snapshot of the task data for the backup task at the time it is run and then destroyed after the task is complete. IT IS NOT!

I took a look at what was in the snapshots directories for all the backup tasks on StorJ and Yes all snapshots are being uploaded and kept. All of my backup tasks are keeping all the snapshots. Since the tasks run every night I have a snapshot for every day they have run which is not what I want.

I don’t know if this is a bug, or if it is now by design and the documentation was not updated or if it is an exceptionally poor GUI interface design. but now I need to clear out hundreds of snapshots I don’t want, uncheck the box and go from there.

What I think should be happening is a snapshot of data taken, backup runs from the data of the task then the backup snapshot is removed. If a snapshot is being uploaded for some necessary reason, then it should follow the Keep Last setting. My setting is to keep last = 1 so generally with most systems that would be the current and 1 previous. I don’t need an ever increasing number.

Edit: here is what the docs say about what that snapshot should do (25.10 docs):
Select Use Snapshot to create and use a snapshot to back up or synchronize the operation between TrueNAS and the TrueCloud backup solution. This snapshot is automatically removed after the operation completes.

Thanks for providing this information! This is exactly what I am experiencing. I’ve mitigated it by not using snapshots for the moment, but that is not what I want to do. As you pointed out, the documentation states these snapshots are intended to be temporary, but that doesn’t seem to be the case.

This seems like a bug. Does anyone know how I can get more visibility on this? I tried to submit a bug, but it says I don’t have permission even after creating the Atlassian account.

Guess I just wait and hope it is inadvertently fixed or more people experience the same issue.

Created bug ticket, it looks like it’s due to backup paths being different for each backup with snapshot enabled.
[NAS-138575] TrueCloud backup keep-last setting doesn’t work with snapshot enabled - iXsystems TrueNAS Jira