[1/2] backup.pl: Include logwatch summary into backups as well
Commit Message
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
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[@]}"
> }
@@ -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[@]}"
}