packetfence icon indicating copy to clipboard operation
packetfence copied to clipboard

Backup and Restore

Open RenatoPereira91 opened this issue 2 years ago • 3 comments

Add an option for web backup and restore that allows you to back up to an external directory. (SFTP/TFTP or something like that)

RenatoPereira91 avatar May 19 '22 00:05 RenatoPereira91

Hello,

Please provide more details on what you want exactly using the template of feature request.

nqb avatar May 19 '22 05:05 nqb

Is your feature request related to a problem? Please describe. it's not a problem, it's an improvement

Describe the solution you'd like Add an option for web backup and restore that allows you to back up to an external directory. (SFTP/TFTP or something like that)

Describe alternatives you've considered Today the PacketFence allow only backup and restore local and via CLI

Additional context With this functionality, we will be able to have the backup saved on an external disk if the machine crashes and will facilitate the backup and restore

RenatoPereira91 avatar May 19 '22 12:05 RenatoPereira91

It's already possible to backup to an external directory using CLI, you need to override value of variable BACKUP_DIR through environment variable:

https://github.com/inverse-inc/packetfence/blob/2c36cd7bc1a433436e7ed8d5cb059cb85382c582/addons/backup-and-maintenance.sh#L24

However, I agree that we should support:

  • backup from web admin (and ability to download resulting backups)
  • restore from web admin

But I think it makes more sense to support export/import mechanism in web admin.

nqb avatar May 19 '22 13:05 nqb

Hi @nqb and @julsemaan

How are you? I hope you're well.

I see this feature has been removed from version 12.0, do you have a new feature preview?

RenatoPereira91 avatar Dec 09 '22 01:12 RenatoPereira91

The milestone setting came from a bad habit we had of always putting a milestone and then pushing it forward if it didn't make it into the roadmap. Now, we leave the milestone out until it makes it into the roadmap.

I don't foresee this making it into our short-term roadmap although it is indeed a good idea.

julsemaan avatar Dec 09 '22 13:12 julsemaan