When i check the source-folder on the TRUENAS2 it's roughly 1.38TB of data. I'm a bit worried that the SYNC-task isn't ignoring files that are already on the storage correctly for some reason though, since if I go to the Onedrive storage-folder I can see roughly ~1TB of data in that folder. I've now changed the replication & cloud sync tasks to only be once a month(just until I've gotten the initial upload done) in case either of the operations are messing with me. I started the initial upload task Thursday last week and now after a few days off from work I realize the task has been restarting several times(it's now at 57%).
At first I had it run directly from TRUENAS1 but I figured it would fail if any files were left open so I moved the task to TRUENAS2 for peace of mind.
Then I've set up a Cloud Sync task to sync(PUSH/SYNC) all the data from TRUENAS2 to our Onedrive Business-storage since we have plenty of space there(E5-licenses so basically unlimited storage with some caveats). TRUENAS1 sends ZFS snapshots on a regular basis to TRUENAS2(Every evening at 20.00) via a built-in Replications Task(PUSH).
Then I've deployed a second Truenas Core-box which only serves as on-site backup for TRUENAS1, let's call this one TRUENAS2, and this one is of course also connected to our Domain, but no SMB-shares are exposed to the users to prevent any files being open when running sync tasks & such. We have one Truenas Core-box that we actually work against with SMB-shares and Active Directory-ACL's(connected to our Domain controller). I'm managing a couple of Truenas-systems here at work, and have been working on our backups a bit.