Hi, I have a question about snapshots. If I restore a file system based on some snapshot I took in the past, is it possible to revert back to before I restored? ie: zfs snapshot test at yesterday mkdir /test/newfolder zfs rollback test at yesterday so now newfolder is gone. But is there a way to take a snapshot so I can revert back be before I restored? ie, get newfolder back after the rollback? Also from what I understand if I have two snapshots and revert to the older one, the newer one will be deleted. Is that correct? Thanks. -- This message posted from opensolaris.org
On 07/ 9/10 01:29 PM, zfsnoob4 wrote:> Hi, > > I have a question about snapshots. If I restore a file system based on some snapshot I took in the past, is it possible to revert back to before I restored? ie: > > zfs snapshot test at yesterday > > mkdir /test/newfolder > > zfs rollback test at yesterday > > so now newfolder is gone. But is there a way to take a snapshot so I can revert back be before I restored? ie, get newfolder back after the rollback? > >You could clone the newer snapshot and promote the clone before rolling back. What particular problem are you trying to solve?> Also from what I understand if I have two snapshots and revert to the older one, the newer one will be deleted. Is that correct? > >Yes. -- Ian.
I''m not trying to fix anything in particular, I''m just curious. In case I rollback a filesystem and then realize, I wanted a file from the original file system (before rollback). I read the section on clones here: http://docs.sun.com/app/docs/doc/819-5461/gavvx?a=view but I''m still not sure what clones are. They sound the same as snapshots. From what I read, it seems like it is possible to snapshot a filesystem, clone the snapshot and then rollback the file system. At this point the clone will be the same size as the data changed during the rollback? So from the clone, files that were unique to the filesystem before rollback can be restored? Thanks. -- This message posted from opensolaris.org
On 07/10/10 08:10 AM, zfsnoob4 wrote:> I''m not trying to fix anything in particular, I''m just curious. In case I rollback a filesystem and then realize, I wanted a file from the original file system (before rollback). > > I read the section on clones here: > http://docs.sun.com/app/docs/doc/819-5461/gavvx?a=view > > but I''m still not sure what clones are.In simple terms, writeable snapshots.> They sound the same as snapshots. From what I read, it seems like it is possible to snapshot a filesystem, clone the snapshot and then rollback the file system.You have to promote the clone before you can destroy its source snapshot.> At this point the clone will be the same size as the data changed during the rollback? So from the clone, files that were unique to the filesystem before rollback can be restored? > >The clone will be a clone of the filesystem at the time its source snapshot was created. -- Ian.