TrueNAS Scale Cloud Sync

Hi,

I have a cloud sync task to backup my nextcloud data and database datasets to backblaze. The datasets are encrypted and I’m using separate encryption for the sync task too.

When the task runs it’s backs up everything as expected. Then the next time it backs up changes. However, reliably at the 3rd of 4th sync, it appears to resync all files under a different folder.

Now the info tip on filename encryption states that “The original directory structure is preserved. A filename with the same name always has the same encrypted filename.” This is not the behaviour I appear to be observing, unless I’m miss understanding how it’s supposed to work?

I’m familiar with delta backups where you specify how many backups should run between a new full backup, but I don’t see a similar option on truenas. I get barely 2MB upload, having the full backup go every 3 days isn’t very feasibly when it takes 2 days just to finish.

Anyone got any advice?

I don’t currently have any systems using BackBlaze any more but your setup sounds correct having it set to SYNC. If no one else here has any suggestions you can try posting in the TrueNAS forums. https://forums.truenas.com/

Thanks Tom! I’ve just set it to backup with encrypted file names turned off so we’ll see if that makes a difference in future backups. I’ll update once that’s run a few times

1 Like

Still testing this. Potentially changing to non encrypted file names has solved it, but I have seen it do at least one full size backup since switching to that (I did run an initial backup after changing the setting so that’s 2 full backups since changing the setting) however the last couple have completed as expected, only changing the files that change.

Will continue to monitor and update with what I find

1 Like

Apologies for leaving this so long - had other focuses in life to deal with by I also was intending to let this run for a while to see what happened and in case I had any ideas…

Well a larger than expected backblaze bill lead to be start investigating this again and…

Well I’m embarrassed to say it seems the issue was completely unrelated to TrueNAS.

In my backblaze bucket settings, it was configured to keep all file history for ever. Not ideal.

Since disabling that feature, just one of my buckets usage as gone from 4TB to 500GB. Definitely wish I’d spotted that sooner but hopefully this helps stop anyone else from running into the same issue.

1 Like