From 73f25ae3afd390570cac0c1e0fff30d7d32d4b37 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 21 Jan 2012 21:36:49 -0800 Subject: [PATCH] Backup all dovecot config files https://www.virtualmin.com/node/20898 --- dovecot/backup_config.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dovecot/backup_config.pl b/dovecot/backup_config.pl index bde9a6762..b685a77b3 100755 --- a/dovecot/backup_config.pl +++ b/dovecot/backup_config.pl @@ -5,7 +5,11 @@ do 'dovecot-lib.pl'; # Returns files and directories that can be backed up sub backup_config_files { -return split(/\s+/, $config{'dovecot_config'}); +if (&get_config_file()) { + local $conf = &get_config(); + return &unique(map { $_->{'file'} } @$conf); + } +return ( ); } # pre_backup(&files)