summaryrefslogtreecommitdiffstats
path: root/etc/periodic/daily
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-06-20 20:01:51 +0000
committerjhb <jhb@FreeBSD.org>2012-06-20 20:01:51 +0000
commit9026ef5736c1ef187623cff58736e5801aba8e67 (patch)
tree75166cd389b6ae75daed9d7e88ddc4f427f24b2c /etc/periodic/daily
parentf62c46ca1bafa985a73b4b3f3efd36c806516564 (diff)
downloadFreeBSD-src-9026ef5736c1ef187623cff58736e5801aba8e67.zip
FreeBSD-src-9026ef5736c1ef187623cff58736e5801aba8e67.tar.gz
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
Diffstat (limited to 'etc/periodic/daily')
-rwxr-xr-xetc/periodic/daily/400.status-disks13
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/periodic/daily/400.status-disks b/etc/periodic/daily/400.status-disks
index dc525a5..dd828aa 100755
--- a/etc/periodic/daily/400.status-disks
+++ b/etc/periodic/daily/400.status-disks
@@ -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
OpenPOWER on IntegriCloud