I have a zpool "pool1" with a dataset "data" and periodic snapshots:
data@auto-20150120.1900-4w
data@auto-20150120.2000-4w
data@auto-20150121.0103-6m
data@auto-20150121.0800-4w
data@auto-20150121.0900-4w
data@auto-20150121.1000-4w
data@auto-20150121.1100-4w
data@auto-20150121.1200-4w
data@auto-20150121.1300-4w
data@auto-20150121.1400-4w
data@auto-20150121.1500-4w
data@auto-20150121.1600-4w
...
I've added a second zpool "pool2" (newer, bigger harddrives) and like to copy the dataset including all off the periodic snapshots to pool2. In the end I want to use pool1 for other stuff and use pool2 the way I used pool1 before.
I already know, there are the zfs send / zfs receive commands for this, but I'm struggling with the correct syntax.
I've tried
zfs send -R pool1/data@auto* | zfs receive pool2
but got
zfs: No match.
With
zfs send -R pool1/data | zfs receive pool2
I've got
Error: Unsupported flag with filesystem or bookmark.
zfs send pool1/data@auto-20150121.1600-4w | zfs receive pool2/data
works but it would be a hazzle to copy every single snapshot individually.
Any help would be appreciated
data@auto-20150120.1900-4w
data@auto-20150120.2000-4w
data@auto-20150121.0103-6m
data@auto-20150121.0800-4w
data@auto-20150121.0900-4w
data@auto-20150121.1000-4w
data@auto-20150121.1100-4w
data@auto-20150121.1200-4w
data@auto-20150121.1300-4w
data@auto-20150121.1400-4w
data@auto-20150121.1500-4w
data@auto-20150121.1600-4w
...
I've added a second zpool "pool2" (newer, bigger harddrives) and like to copy the dataset including all off the periodic snapshots to pool2. In the end I want to use pool1 for other stuff and use pool2 the way I used pool1 before.
I already know, there are the zfs send / zfs receive commands for this, but I'm struggling with the correct syntax.
I've tried
zfs send -R pool1/data@auto* | zfs receive pool2
but got
zfs: No match.
With
zfs send -R pool1/data | zfs receive pool2
I've got
Error: Unsupported flag with filesystem or bookmark.
zfs send pool1/data@auto-20150121.1600-4w | zfs receive pool2/data
works but it would be a hazzle to copy every single snapshot individually.
Any help would be appreciated
Last edited: