Glorious1
Guru
- Joined
- Nov 23, 2014
- Messages
- 1,211
I have auto snapshots and auto replication between my primary and backup pools, Ark and ArkBak. Snapshots have defined expiration, two weeks and 1 year. I want to add a single snapshot (and replicate it) that will persist indefinitely.
I'm creating a manual snapshot and replicating it incrementally on the command line. But it gets deleted on the target end the next automatic replication. Here's what I'm trying:
1. Created manual snapshot on source in TrueNAS GUI > Storage > Snapshots > Add. Named manual-2023-03-30_10-47.
2. Manually replicated it to the backup pool, ArkBak, referencing it to the most recent auto snapshot:
3. As expected, the manual snapshot is now on backup pool (not showing all snapshots):
4. After the daily midnight automatic replication, the snapshot is deleted from the target, but not the source. And if I were to replicate it non-incrementally, apparently that would require wiping out all the existing snapshots on target.
How can I make a single snapshot persist indefinitely, while having the automatic snapshot/replication going on as normal?
I'm creating a manual snapshot and replicating it incrementally on the command line. But it gets deleted on the target end the next automatic replication. Here's what I'm trying:
1. Created manual snapshot on source in TrueNAS GUI > Storage > Snapshots > Add. Named manual-2023-03-30_10-47.
2. Manually replicated it to the backup pool, ArkBak, referencing it to the most recent auto snapshot:
Code:
Tabernacle:~$ sudo zfs send --verbose -i @auto-2023-03-30_00-01-2w Ark/Media@manual-2023-03-30_10-47 | sudo zfs receive -vFdu ArkBak/Media Password: send from Ark/Media@auto-2023-03-30_00-01-2w to Ark/Media@manual-2023-03-30_10-47 estimated size is 1.16G total estimated size is 1.16G receiving incremental stream of Ark/Media@manual-2023-03-30_10-47 into ArkBak/Media@manual-2023-03-30_10-47 TIME SENT SNAPSHOT Ark/Media@manual-2023-03-30_10-47 10:49:36 9.19M Ark/Media@manual-2023-03-30_10-47 10:49:37 581M Ark/Media@manual-2023-03-30_10-47 10:49:38 1.14G Ark/Media@manual-2023-03-30_10-47 received 1.16G stream in 6 seconds (199M/sec)
3. As expected, the manual snapshot is now on backup pool (not showing all snapshots):
Code:
Tabernacle:~$ zfs list -t all | grep Media | column -t Ark/Media 2.89T 1.35T 2.65T /mnt/Ark/Media . . . Ark/Media@auto-2023-03-30_00-01-2w 3.87M - 2.65T - Ark/Media@manual-2023-03-30_10-47 0B - 2.65T - ArkBak/Media 2.89T 1.34T 2.66T /mnt/ArkBak/Media . . . ArkBak/Media@auto-2023-03-30_00-01-2w 2.73M - 2.65T - ArkBak/Media@manual-2023-03-30_10-47 0B - 2.66T -
4. After the daily midnight automatic replication, the snapshot is deleted from the target, but not the source. And if I were to replicate it non-incrementally, apparently that would require wiping out all the existing snapshots on target.
How can I make a single snapshot persist indefinitely, while having the automatic snapshot/replication going on as normal?