User Tools

Site Tools


zfs:snapshots:rollback_a_snapshot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
zfs:snapshots:rollback_a_snapshot [2021/10/12 22:43] – created peterzfs:snapshots:rollback_a_snapshot [2021/10/13 12:16] (current) peter
Line 13: Line 13:
 **NOTE:**  Once the rollback is completed, you can verify the files present in the directory. **NOTE:**  Once the rollback is completed, you can verify the files present in the directory.
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Snapshot Rollback Test =====
 +
 +Destroy all the files and then roll back:
 +
 +<code bash>
 +sudo zfs snapshot testpool/some_directory@sunday
 +rm -rf testpool/some_directory
 +sudo zfs rollback testpool/some_directory@sunday
 +</code>
  
zfs/snapshots/rollback_a_snapshot.1634078591.txt.gz · Last modified: 2021/10/12 22:43 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki