inverse-inc / packetfence

PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.
https://packetfence.org
GNU General Public License v2.0
1.39k stars 291 forks source link

Add exportable backup for PF #8327

Closed JeGoi closed 1 month ago

JeGoi commented 1 month ago

Description

This will create exportable backup for packetfence. It combines the current backup and export script in one

Impacts

It will create exportable backup for packetfence.

[root@el8_standalone pf]# ls -la /root/backup/
total 1086028
drwxr-xr-x. 2 root root      4096 Sep 26 13:04 .
dr-xr-x---. 7 root root      4096 Sep 26 13:03 ..
-rw-r--r--  1 root root 184624564 Sep 26 12:58 packetfence-exportable-backup-2024-09-26_12h57.tgz
-rw-r--r--  1 root root 184631925 Sep 26 13:04 packetfence-exportable-backup-2024-09-26_13h03.tgz

Delete branch after merge

YES

NEWS file entries

New Features

JeGoi commented 1 month ago

No ready test is failing.

JeGoi commented 1 month ago

@lzammit is is ready for review. It passes the unit tests. Doc is included

E-ThanG commented 2 weeks ago

What does this change mean for importing a standalone host from 14.0 to 14.1? I was wanting to import a standalone 14.0 export to a standalone 14.1 host, but the file name change made that not possible. It might work if I edit the exported file and rename the packetfence-files to packetfence-conf

JeGoi commented 2 weeks ago

Thanks and Good point, let's fix it now.

JeGoi commented 2 weeks ago

Quick and dirty Fix: https://github.com/inverse-inc/packetfence/commit/f15703fc4ffd4ac3b803e6d5c1b6f4ad64c6696b @E-ThanG thanks again.