I am having problems with zfs cron jobs. I want a daily snapshot but nothing happens. At first I had a shell script that cron would call, but that is not working and I am not getting output from the command. I tried placing the command natively in cron without success, and I copied someone else's example and still no dice. SELinux shows no violations.
Here is the example I copied, very similar to mine.
@daily /usr/sbin/zfs snapshot -r raid5@AutoD-`date +"_%F"`
Thoughts?
[root@nas ~]# yum info zfs
...
Name : zfs
Arch : x86_64
Version : 0.7.11
Release : 1.el7_4
[root@nas ~]# uname -r
3.10.0-862.14.4.el7.x86_64
[root@nas ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
[root@nas ~]# sealert -a /var/log/audit/audit.log
100% done
found 0 alerts in /var/log/audit/audit.log
Here is the example I copied, very similar to mine.
@daily /usr/sbin/zfs snapshot -r raid5@AutoD-`date +"_%F"`
Thoughts?
[root@nas ~]# yum info zfs
...
Name : zfs
Arch : x86_64
Version : 0.7.11
Release : 1.el7_4
[root@nas ~]# uname -r
3.10.0-862.14.4.el7.x86_64
[root@nas ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
[root@nas ~]# sealert -a /var/log/audit/audit.log
100% done
found 0 alerts in /var/log/audit/audit.log