This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:zfs_snapshot [2021/07/08 11:16] gcooper |
computing:storage:zfs_snapshot [2024/04/05 06:59] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ZFS Snapshots ====== | ====== ZFS Snapshots ====== | ||
- | https:// | + | **Oracle Documentation**: |
- | ZFS snapshots can be a fast and easy way to perform backups. | + | **Napp-IT Replication Docs**: https://www.napp-it.org/ |
- | :!: Napp-IT has a commercial (Pro) module available that performs ZFS snapshots and sends them to another ZFS server. | + | **Napp-IT Documentation**: |
+ | |||
+ | <note important> | ||
+ | |||
+ | :!: Napp-IT has a commercial (Pro) Replication | ||
===== Recover Data from Snapshots ===== | ===== Recover Data from Snapshots ===== | ||
- | **Snapshots are automatically mounted** under ''/ | + | ==== By File ==== |
+ | |||
+ | **Snapshots are automatically mounted** | ||
Example with a (three level) nested ZFS filesystem showing an NFS storage repository containing VHDs: | Example with a (three level) nested ZFS filesystem showing an NFS storage repository containing VHDs: | ||
< | < | ||
- | /toplevel/midlevel/bottomlevel/ | + | /toplevelfs/midlevelfs/bottomlevelfs/ |
</ | </ | ||
+ | |||
+ | ==== Using Clones ==== | ||
+ | |||
+ | :!: As with snapshots, creating a clone (writeable filesystem) is nearly instantaneous and initially consumes no additional disk space. Clones can only be created from snapshots. | ||
If you don't want to muck with the '' | If you don't want to muck with the '' | ||
- | - **clone the snapshot** | + | - **Clone the snapshot** |
- | - copy out your files/ | + | - Copy out your files/ |
- | - destroy | + | - Destroy |
+ | |||
+ | ==== Rollback ==== | ||
+ | |||
+ | You can use the ZFS rollback feature to discard all changes made to a file system since a specific snapshot was created. The file system reverts to its state at the time the snapshot was taken. | ||
+ | |||
+ | <note warning> | ||
+ | For most rollback cases, using Windows and Previous Version is the suggested method for a roll back as you can restrict the rollback to files and folders. | ||
+ | You can use Napp-IT menu **ZFS-Filesystem -> Rollback** to initiate a rollback. |