For me, this looks a bit strange, but maybe I assume I did not understand it overall. So what I try to do is to use
It worked fine so far until I added the -R on the sending side and the -F on the recv. So I attach the output :
I did this twice - the first time with @20221210 as snapshot, the second with @20221210a . So it seems that second snapshot with the "a" as the last letter was not recognised as a different snapshot. Why ?!
And then the second it just has deleted the whole dataset instead of ignoring it again . Why this ?
I was under the impression that the parameter -R is for replicating including the zfs-properties. The -F will delete all snapshots on the receiving side , that also no longer available on the source/send side.
dI am glad that zvideo/video with more than 1200 movies is still available on the sending side. But I was not expecting that zmedia1/video is destroyed and all underlying snapshots.
Where is my fault of thinking ?
zfs send
and zfs receive
to create a backup of a dataset with movies. So everytime I added some movies, I make a snapshot and send this incremental snapshot. Overall I want to replicate the dataset.It worked fine so far until I added the -R on the sending side and the -F on the recv. So I attach the output :
Code:
...
send from @20221210 to zvideo/video@20221210a estimated size is 624
total estimated size is 1,22K
send from @20221209 to zvideo/video@20221210 estimated size is 624
send from @20221210 to zvideo/video@20221210a estimated size is 624
attempting destroy zmedia1/video@20220722
success
attempting destroy zmedia1/video@20220819
success
attempting destroy zmedia1/video@20221011
success
attempting destroy zmedia1/video@20221030
success
receiving incremental stream of zvideo/video@20221210 into zmedia1/video@20221210
snap zmedia1/video@20221210 already exists; ignoring
received 0B stream in 1 seconds (0B/sec)
replicator@blackbox:~ $ zfs list -t all -r zvideo
NAME USED AVAIL REFER MOUNTPOINT
zvideo 6,70T 2,11T 104K /filmpool
zvideo@20220819 56K - 104K -
zvideo/natur 68,1G 2,11T 68,1G /filmpool/natur
zvideo/natur@20220819 56K - 68,1G -
zvideo/tv 353G 2,11T 353G /filmpool/tv
zvideo/tv@20220819 56K - 353G -
zvideo/video 6,29T 2,11T 6,26T /storage/video
zvideo/video@20221104 2,85G - 6,09T -
zvideo/video@20221114 488K - 6,11T -
zvideo/video@20221124 8,97G - 6,16T -
zvideo/video@20221207 720K - 6,23T -
zvideo/video@20221208 344K - 6,25T -
zvideo/video@20221209 0 - 6,26T -
zvideo/video@20221210 0 - 6,26T -
zvideo/video@20221210a 0 - 6,26T -
replicator@blackbox:~ $ zfs send -RceV --verbose -I @20221210a zvideo/video@20221211 | ssh replicator@silverwave zfs receive -vF zmedia1/video
send from @20221210a to zvideo/video@20221211 estimated size is 58,6K
total estimated size is 58,6K
send from @20221210a to zvideo/video@20221211 estimated size is 58,6K
cannot receive incremental stream: destination 'zmedia1/video' does not exist
cannot open 'zmedia1/video': dataset does not exist
attempting destroy zmedia1/video@20221104
success
attempting destroy zmedia1/video@20221114
success
attempting destroy zmedia1/video@20221124
success
attempting destroy zmedia1/video@20221207
success
attempting destroy zmedia1/video@20221208
success
attempting destroy zmedia1/video@20221209
success
attempting destroy zmedia1/video@20221210
success
attempting destroy zmedia1/video
success
And then the second it just has deleted the whole dataset instead of ignoring it again . Why this ?
I was under the impression that the parameter -R is for replicating including the zfs-properties. The -F will delete all snapshots on the receiving side , that also no longer available on the source/send side.
dI am glad that zvideo/video with more than 1200 movies is still available on the sending side. But I was not expecting that zmedia1/video is destroyed and all underlying snapshots.
Where is my fault of thinking ?