use utc for timestamps as default
This commit is contained in:
parent
9d387c013f
commit
bb654c1cf6
|
@ -6,9 +6,11 @@
|
||||||
|
|
||||||
More prosaically, you can use Sanoid to create, automatically thin, and monitor snapshots and pool health from a single eminently human-readable TOML config file at /etc/sanoid/sanoid.conf. (Sanoid also requires a "defaults" file located at /etc/sanoid/sanoid.defaults.conf, which is not user-editable.) A typical Sanoid system would have a single cron job:
|
More prosaically, you can use Sanoid to create, automatically thin, and monitor snapshots and pool health from a single eminently human-readable TOML config file at /etc/sanoid/sanoid.conf. (Sanoid also requires a "defaults" file located at /etc/sanoid/sanoid.defaults.conf, which is not user-editable.) A typical Sanoid system would have a single cron job:
|
||||||
```
|
```
|
||||||
* * * * * /usr/local/bin/sanoid --cron
|
* * * * * TZ=UTC /usr/local/bin/sanoid --cron
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`Note`: Using UTC as timezone is recommend to prevent problems with daylight saving times
|
||||||
|
|
||||||
And its /etc/sanoid/sanoid.conf might look something like this:
|
And its /etc/sanoid/sanoid.conf might look something like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -5,5 +5,6 @@ After=zfs.target
|
||||||
ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
|
ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=TZ=UTC
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/sbin/sanoid --cron
|
ExecStart=/usr/sbin/sanoid --cron
|
||||||
|
|
|
@ -58,6 +58,7 @@ Requires=zfs.target
|
||||||
After=zfs.target
|
After=zfs.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=TZ=UTC
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=%{_sbindir}/sanoid --cron
|
ExecStart=%{_sbindir}/sanoid --cron
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue