[1/2] backup.pl: Include logwatch summary into backups as well

Message ID 232fb7fd-84cd-62c4-ffa0-261b3fa26f50@ipfire.org
State Accepted
Commit c1a5a49b476bc31b1fc08e331e07bbeaba82943d
Headers
Series [1/2] backup.pl: Include logwatch summary into backups as well |

Commit Message

Peter Müller July 9, 2022, 10:21 a.m. UTC
  Fixes: 12827
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 config/backup/backup.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Adolf Belka July 9, 2022, 2:34 p.m. UTC | #1
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>

On 09/07/2022 12:21, Peter Müller wrote:
> Fixes: 12827
> Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
> ---
>   config/backup/backup.pl | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/config/backup/backup.pl b/config/backup/backup.pl
> index 7094ed610..762437321 100644
> --- a/config/backup/backup.pl
> +++ b/config/backup/backup.pl
> @@ -2,7 +2,7 @@
>   ###############################################################################
>   #                                                                             #
>   # IPFire.org - A linux based firewall                                         #
> -# Copyright (C) 2007-2014  IPFire Team  <info@ipfire.org>                     #
> +# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
>   #                                                                             #
>   # This program is free software: you can redistribute it and/or modify        #
>   # it under the terms of the GNU General Public License as published by        #
> @@ -191,7 +191,7 @@ restore_backup() {
>   }
>   
>   find_logfiles() {
> -	local filelist=( /var/log/messages* /var/log/*.log /var/log/**/*.log )
> +	local filelist=( /var/log/logwatch/* /var/log/messages* /var/log/*.log /var/log/**/*.log )
>   
>   	echo "${filelist[@]}"
>   }
  

Patch

diff --git a/config/backup/backup.pl b/config/backup/backup.pl
index 7094ed610..762437321 100644
--- a/config/backup/backup.pl
+++ b/config/backup/backup.pl
@@ -2,7 +2,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2014  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -191,7 +191,7 @@  restore_backup() {
 }
 
 find_logfiles() {
-	local filelist=( /var/log/messages* /var/log/*.log /var/log/**/*.log )
+	local filelist=( /var/log/logwatch/* /var/log/messages* /var/log/*.log /var/log/**/*.log )
 
 	echo "${filelist[@]}"
 }