Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
automated_zfs_snapshots_for_omv5 [2021/05/05 23:44] – crashtest | automated_zfs_snapshots_for_omv5 [2022/07/26 01:35] – crashtest | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{ : | + | < |
- | + | ||
- | < | + | |
{{ : | {{ : | ||
- | ====== Automated ZFS Snapshots for openmediavault | + | ====== Automated ZFS Snapshots for Openmediavault |
\\ | \\ | ||
< | < | ||
Line 22: | Line 20: | ||
\\ | \\ | ||
**For ZFS users:**\\ | **For ZFS users:**\\ | ||
- | This guide will show how to setup and take advantage of one of ZFS' most valuable features for restoration, | + | This guide will show how to setup and take advantage of one of ZFS' most valuable features for restoration, |
+ | **zfs-auto-snapshot**, | ||
While intended primarily for openmendiavault, | While intended primarily for openmendiavault, | ||
Line 31: | Line 30: | ||
---- | ---- | ||
- | \\ | + | |
==== General ==== | ==== General ==== | ||
- | \\ | + | |
Given the design and function of a CoW (copy on write) filesystem, ZFS gives users the ability to “capture” the state of their file system at a given moment in time and preserve it using snapshots. | Given the design and function of a CoW (copy on write) filesystem, ZFS gives users the ability to “capture” the state of their file system at a given moment in time and preserve it using snapshots. | ||
Having the ability to “roll back” the pool, individual filesystems in the pool, or retrieve individual files from previous snapshots has obvious advantages. | Having the ability to “roll back” the pool, individual filesystems in the pool, or retrieve individual files from previous snapshots has obvious advantages. | ||
Line 83: | Line 82: | ||
\\ | \\ | ||
**In the interests of clarity: | **In the interests of clarity: | ||
- | A ZFS “filesystem” is interchangeable with a standard Linux folder at the root of the pool and is navigable, on the command line, in the same manner. | + | A ZFS “filesystem” is interchangeable with a standard Linux folder at the root of the parent |
\\ | \\ | ||
---- | ---- | ||
- | ==== Customizing Snapshot jobs ==== | + | ===== Customizing Snapshot jobs ===== |
By default all snapshot time intervals are set to “**true**”. | By default all snapshot time intervals are set to “**true**”. | ||
Line 96: | Line 95: | ||
\\ | \\ | ||
zfs set com.sun: | zfs set com.sun: | ||
+ | \\ | ||
zfs set com.sun: | zfs set com.sun: | ||
zfs set com.sun: | zfs set com.sun: | ||
Line 145: | Line 145: | ||
While rolling back a file system or the parent pool is relatively easy, if going significantly back in time (beyond the most recent snapshot) the roll back feature will not work in the OMV GUI. However, a roll back can be done with the following command line: | While rolling back a file system or the parent pool is relatively easy, if going significantly back in time (beyond the most recent snapshot) the roll back feature will not work in the OMV GUI. However, a roll back can be done with the following command line: | ||
- | (In this example, the roll back would be done to the entire | + | (In this example, the roll back would be done to the parent pool “Rocky”.) |
'' | '' | ||
Line 195: | Line 195: | ||
---- | ---- | ||
- | ==== Notes: ==== | + | ===== Notes: |
1. For maximum snapshot flexibility, | 1. For maximum snapshot flexibility, | ||
Line 215: | Line 215: | ||
6. If more advanced features are needed, such as offloading snapshots to an external host, [[http:// | 6. If more advanced features are needed, such as offloading snapshots to an external host, [[http:// | ||
\\ | \\ | ||
- | === Additional Information: === | + | ==== Additional Information |
- | zfs-auto-snapshot source: | + | ==== zfs-auto-snapshot source |
https:// | https:// | ||
\\ | \\ | ||
Line 223: | Line 223: | ||
https:// | https:// | ||
\\ | \\ | ||
- | ZFS Video Tutorial: | + | ==== ZFS Video Tutorial |
Part 1: https:// | Part 1: https:// | ||
Part 2: https:// | Part 2: https:// |