Saturday, January 21, 2017

linux - ZFS Send and ZFS receive dataset without -RI incremental replication sync

Is there a way I can send ONLY the latest snapshots to the backup zfs system even though it has previous snapshots? When I try I keep getting error:



"cannot receive new filesystem stream: destination has snapshots (eg. mirrorpool/ETC/Stuff) must destroy them to overwrite it"




And I was using zfs send receive with the -F already.



Basically the receiving system has not received a bunch of snapshots since I found it had run out of space. So I deleted a bunch of VERY old snapshots on the receiving zfs file system and left the more recent ones, but the zfs system that does the zfs send has a lot of even more recent snapshots that don't exist on the zfs receiver (backup server). But I do NOT want to replicate ALL the missing snapshots back to the snapshot they have in common. I would like to simply send the most recent snapshot couple snapshots to the zfs receiver.



Currently the zfs receiver has the first couple snapshots ever created and then the rest were deleted and only ones left were the latest it had from around sometime in October 2018. So I would like to avoid sending Every Daily snapshot since October 2018 from the Zfs Sender system to the zfs receiver and just send only the last couple snapshots.



Or is there some sort of just "rsync" type of zfs send | zfs receive where I can just keep the two datasets in-sync without sending over any snapshots?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...