Date: Wed, 20 Jun 2012 20:01:51 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r237337 - head/etc/periodic/daily Message-ID: <201206202001.q5KK1pbZ065039@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Wed Jun 20 20:01:51 2012 New Revision: 237337 URL: http://svn.freebsd.org/changeset/base/237337 Log: Only output a list of file systems that need to be dumped if the system has a non-empty dumpdates file. Reviewed by: brooks MFC after: 1 week Modified: head/etc/periodic/daily/400.status-disks Modified: head/etc/periodic/daily/400.status-disks ============================================================================== --- head/etc/periodic/daily/400.status-disks Wed Jun 20 18:35:36 2012 (r237336) +++ head/etc/periodic/daily/400.status-disks Wed Jun 20 20:01:51 2012 (r237337) @@ -19,12 +19,15 @@ case "$daily_status_disks_enable" in df $daily_status_disks_df_flags && rc=1 || rc=3 # display which filesystems need backing up - if ! [ -f /etc/fstab ]; then - export PATH_FSTAB=/dev/null - fi + if [ -s /etc/dumpdates ]; then + if ! [ -f /etc/fstab ]; then + export PATH_FSTAB=/dev/null + fi - echo "" - dump W || rc=3;; + echo "" + dump W || rc=3 + fi + ;; *) rc=0;; esac
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206202001.q5KK1pbZ065039>