Hi,
I have one pool (tank) with multiple datasets, each with multiple children.
I have an external hdd dock connected to the TrueNAS server via usb3. Works well and I can access it like an internal drive to the server.
I want to create a full backup of tank including absolutely all data, snapshots, everything. I want a complete replica so I can restore the Truenas system in the case of disaster (a backup).
I will run the replication task manually - connect a drive, import the pool, run the replication task.
I want it to mirror the snapshots completely, so as
snapshots are deleted on Tank according to retention policies I want them to be removed from the external drive when running the replication. As new snapshots are added to Tank, I want the replication to mirror these across.
I canāt seem to achieve this.
I have tried selecting Tank as the source and the ārecursiveā option and it indeed replicates all the data and snap shots. But the next time I run it, it does not clean up any deleted snapshots and the snapshot number on the external drive just grows and is no longer aligned with Tank.
I have tried using the āfull replicationā option, but then the ārecursiveā option is not available any more. I can then only select the child datasets of tank, which means all the auto snapshots of app and system data donāt seem to then replicate (which are located at Tank/app etc) as it throws an error if I select both child and parent datasets, ie. you canāt select both as data overlaps I am guessing?
What is the easiest way in this setup to keep a full copy of my Truenas data as a backup (absolutely everything) that remains a full mirror of the original pool, so I can recover everything in its entirety?
I must be missing something here.
BTW, I have overlapping snapshots set up for each of my data sets, where I have set it to recursively snapshot child datasets as well as the parent. I have also set retention periods for each. I have set the replication option of āSame as Sourceā for retention period.
How do I mirror my Truenas hard drive to an external drive using the gui, preferably in an incremental way to save time and data transferred (changes only). I mean could dd the disk but seems dumb given power of zfs.
Any help much appreciated!