* [PATCH] backup.pl: Fix issue with University of Toulouse change
@ 2026-06-05 16:40 Adolf Belka
2026-06-05 16:40 ` [PATCH] backup.pl: unbound entries not needed with knot in place Adolf Belka
[not found] ` <a8f638c6-ed7c-4972-b5a5-dff3089182fe@ipfire.org>
0 siblings, 2 replies; 3+ messages in thread
From: Adolf Belka @ 2026-06-05 16:40 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- Some months ago University of Toulouse changed any lists with a different French and
English name from being duplicate files to being a file plus a symlink.
- Doing a restore from a backup with symlinks into a system with only file names
resulted in a symlink trying to be created when a file with the same name already
existed causing a failure.
- This failure stopped the restore part way through resulting in only a partial restore.
- This patch removes all entries in the urlfilter blacklists, allowing all restored
entries to be created.
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
config/backup/backup.pl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/config/backup/backup.pl b/config/backup/backup.pl
index 7454ae762..417d33f40 100644
--- a/config/backup/backup.pl
+++ b/config/backup/backup.pl
@@ -2,7 +2,7 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2025 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2026 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 #
@@ -83,6 +83,10 @@ restore_backup() {
# certificates being left in directory after a restore
rm -f /var/ipfire/ovpn/certs/*
+ # remove all previous blacklist entries from urlfilter
+ # to prevent any clashes between symlinks and files
+ rm -Rf /var/ipfire/urrlfilter/blacklists/*
+
# Extract backup
if ! tar xvzpf "${filename}" -C / \
--exclude-from="/var/ipfire/backup/exclude" \
--
2.54.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] backup.pl: unbound entries not needed with knot in place
2026-06-05 16:40 [PATCH] backup.pl: Fix issue with University of Toulouse change Adolf Belka
@ 2026-06-05 16:40 ` Adolf Belka
[not found] ` <a8f638c6-ed7c-4972-b5a5-dff3089182fe@ipfire.org>
1 sibling, 0 replies; 3+ messages in thread
From: Adolf Belka @ 2026-06-05 16:40 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- With the change from unbound to knot the unbound specific user and group no longer
need to be created and any restored /etc/unbound directory can also be removed
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
config/backup/backup.pl | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/config/backup/backup.pl b/config/backup/backup.pl
index 417d33f40..cfd1ac40f 100644
--- a/config/backup/backup.pl
+++ b/config/backup/backup.pl
@@ -112,13 +112,8 @@ restore_backup() {
-s /bin/false \
-u 52 dhcpcd
- # create unbound user
- groupadd -g 103 unbound
- useradd -c 'unbound User' \
- -d /var/empty \
- -g unbound \
- -s /bin/false \
- -u 103 unbound
+ # Remove any unbound directory that is restored
+ rm -Rf /etc/unbound/
# Create Knot Resolver group
if ! getent group knot-resolver &>/dev/null; then
--
2.54.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] backup.pl: Fix issue with University of Toulouse change
[not found] ` <a8f638c6-ed7c-4972-b5a5-dff3089182fe@ipfire.org>
@ 2026-06-05 17:37 ` Adolf Belka
0 siblings, 0 replies; 3+ messages in thread
From: Adolf Belka @ 2026-06-05 17:37 UTC (permalink / raw)
To: Matthias Fischer, Michael Tremer; +Cc: IPFire: Development-List
Hi Matthias,
On 05/06/2026 18:58, Matthias Fischer wrote:
> Hi Adolf,
>
> just in case no one has seen it yet: you got a typo down there...:
>
> ... /var/ipfire/urrlfilter/blacklists/ ...
> !^^!
Oh sugar puffs.
Thanks very much for spotting it. That's what comes from testing it on a separate system from doing the patch submission.
Hi Michael,
Can you easily correct this or should I re-do the patch submission?
Regards,
Adolf.
>
> Best
> Matthias
>
> On 05.06.2026 18:40, Adolf Belka wrote:
>> - Some months ago University of Toulouse changed any lists with a different French and
>> English name from being duplicate files to being a file plus a symlink.
>> - Doing a restore from a backup with symlinks into a system with only file names
>> resulted in a symlink trying to be created when a file with the same name already
>> existed causing a failure.
>> - This failure stopped the restore part way through resulting in only a partial restore.
>> - This patch removes all entries in the urlfilter blacklists, allowing all restored
>> entries to be created.
>>
>> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
>> ---
>> config/backup/backup.pl | 6 +++++-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/config/backup/backup.pl b/config/backup/backup.pl
>> index 7454ae762..417d33f40 100644
>> --- a/config/backup/backup.pl
>> +++ b/config/backup/backup.pl
>> @@ -2,7 +2,7 @@
>> ###############################################################################
>> # #
>> # IPFire.org - A linux based firewall #
>> -# Copyright (C) 2007-2025 IPFire Team <info@ipfire.org> #
>> +# Copyright (C) 2007-2026 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 #
>> @@ -83,6 +83,10 @@ restore_backup() {
>> # certificates being left in directory after a restore
>> rm -f /var/ipfire/ovpn/certs/*
>>
>> + # remove all previous blacklist entries from urlfilter
>> + # to prevent any clashes between symlinks and files
>> + rm -Rf /var/ipfire/urrlfilter/blacklists/*
>> +
>> # Extract backup
>> if ! tar xvzpf "${filename}" -C / \
>> --exclude-from="/var/ipfire/backup/exclude" \
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-06-05 17:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 16:40 [PATCH] backup.pl: Fix issue with University of Toulouse change Adolf Belka
2026-06-05 16:40 ` [PATCH] backup.pl: unbound entries not needed with knot in place Adolf Belka
[not found] ` <a8f638c6-ed7c-4972-b5a5-dff3089182fe@ipfire.org>
2026-06-05 17:37 ` [PATCH] backup.pl: Fix issue with University of Toulouse change Adolf Belka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox