Backup Refactor
FREEPBX-12322 - Rework backup to better handle backup/restore between versions CLOSED
Backup from the floor up.
Backup has gitten a bit long in the tooth and is a patchwork mess that makes it sometimes difficult or impossible to add features or fix bugs.
Goals
Move backup/restore scripts to fwconsole. Add additional cli functionality such as list (handy when manually running from the CLI)
Create a new module Filesystem which allows modular file system addition. Backup will hook in to this for storage. Make this hookable (mock filesystem from other modules)
Local
(S)FTP
SSH
Email (write only)
S3
Sangoma backup API?
Non breaking, must be able to migrate current jobs and use old backup files.
Consider hooking calendar for schedules
Consider sysadmin hooks to allow root stuff
Consider manual sources (such as custom mysql tables)
General feature parody