I have following ZFS Snapshots:
data/server/dev1@snap1
data/server/dev1@snap2
data/server/dev1@snap3
If i want to rollback to snap1
, i would do the following:
zfs rollback data/server/dev1@snap1
but ZFS returns:
more recent snapshots or bookmarks exist
use '-r' to force deletion..
I know there is the possibility to simply copy the files out of /data/server/dev1/.zfs/snapshot/snap1
into /data/server/dev1
but that takes much longer than a zfs rollback
.
Is there a way to do the rollback AND keep the newer snapshots snap2
& snap3
?
Update 21/11/2016
It looks like there is a way to do this. I read about working with zfs promote
and zfs clone
but I could not figure out how it exactly works.
zfs clone data/server/dev1@snap1 data/server/dev1-temp
for example. How can I rollback from that? A simplezfs rollback
returnsoperation not applicable to datasets of this type
– Courteous