From 9c70ce44802fce1950e557e1e69d65d0219ea42c Mon Sep 17 00:00:00 2001 From: Bryan Quigley Date: Mon, 17 Jun 2019 09:38:53 -0700 Subject: [PATCH] Remove cron daily backup It was added in 2010 (#554170) as a split off from a previous cron job. I haven't seen an arguement for why it's useful to keep. Depending on when a mistake occurs in one of the files it backups it will provide variable recovery time of 0 to 24hours. --- debian/passwd.cron.daily | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 debian/passwd.cron.daily diff --git a/debian/passwd.cron.daily b/debian/passwd.cron.daily deleted file mode 100644 index 4778bf09..00000000 --- a/debian/passwd.cron.daily +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -cd /var/backups || exit 0 - -for FILE in passwd group shadow gshadow; do - test -f /etc/$FILE || continue - cmp -s $FILE.bak /etc/$FILE && continue - cp -p /etc/$FILE $FILE.bak && chmod 600 $FILE.bak -done