the backup dir should stay conventional, in /home/backup. we should deal with "system files moved elsewhere" in a different way
This commit is contained in:
parent
ff10ae4ad4
commit
21e0c79570
|
@ -659,11 +659,7 @@ check_muninrunning() {
|
||||||
}
|
}
|
||||||
# Check if files in /home/backup/ are up-to-date
|
# Check if files in /home/backup/ are up-to-date
|
||||||
check_backupuptodate() {
|
check_backupuptodate() {
|
||||||
# find local backup directory
|
backup_dir="/home/backup"
|
||||||
backup_dir=$(grep --no-messages 'LOCAL_BACKUP_DIR=' /etc/cron.daily/zzz_evobackup | tr -d \" | cut -d= -f2)
|
|
||||||
if [ -z "${backup_dir}" ]; then
|
|
||||||
backup_dir="/home/backup"
|
|
||||||
fi
|
|
||||||
if [ -d "${backup_dir}" ]; then
|
if [ -d "${backup_dir}" ]; then
|
||||||
if [ -n "$(ls -A ${backup_dir})" ]; then
|
if [ -n "$(ls -A ${backup_dir})" ]; then
|
||||||
for file in ${backup_dir}/*; do
|
for file in ${backup_dir}/*; do
|
||||||
|
|
Loading…
Reference in a new issue