My TrueNAS is (was) set up with the main pool being /mnt/data. It backs up nightly to /mnt/offsite-backup/backup, which is encrypted, as it’s on an external drive and stored offsite. The main pool (offsite-backup) is not encrypted, but the child dataset ;backup) is, as are all the children under it.
Last night. I had a series of issues and drives simply not being detected that resulted in the loss of /mnt/data. Thankfully, I have the backup on hand. I started a replication this morning to restore everything to /mnt/data, but I can see it’s all coming back encrypted. This leads me to two questions:
is there a command I can use to copy everything from /mnt/offsite-backup/backup/ to /mnt/data/ all at a once, without needing to restore each child dataset?
Can I restore the datasets without them being encrypted at the target dataset?
Tick off “Full file system replication” in the replication task so that the destination does NOT inherit the properties of the source, and start anew.
When done, remove the read only flag in the destination.
I’m stuck with this because I can’t seem to run the restore without picking snapshots, but no matter what I try, I am getting a message the selection I have is preventing the restore:
[EINVAL] replication_update.periodic_snapshot_tasks.0: Replication tasks that replicate the entire filesystem can only use periodic snapshot tasks that take recursive snapshots of the dataset being replicated (or its ancestor)
or
0 of 371 existing snapshots of dataset onsite-backup/backup/apps,onsite-backup/backup/backups,onsite-backup/backup/home,onsite-backup/backup/media,onsite-backup/backup/medical,onsite-backup/backup/scripts,onsite-backup/backup/software,onsite-backup/backup/temp,onsite-backup/backup/timemachine,onsite-backup/backup/torrents,onsite-backup/backup/virtual-machines,onsite-backup/backup would be replicated with this task.
OK, I got it to work - once the restore is done, I’ll post the parameters I used to get it to restore unencrypted. It’s not the full file system unfortunately, but it’s better than nothing.
I may need to keep my backups unencrypted for ease of restore. I can’t seem to get a full file system from an encrypted dataset, which means things like /.ix-apps won’t be recovered.