Ticket #2867 (reopened Feature Requests)

Opened 5 months ago

Last modified 5 months ago

Additional options for backup/resotre

Reported by: richardteachout Assigned to:
Priority: trivial Milestone: Cut Line
Component: Backup & Restore Version: 2.4-branch
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description (Last modified by lazytt)

I would like for the Backup/Restore module to be able to do the following:

  • Add freepbx default web page directories (/var/www/html/)
  • Add Custom Folder to the backup Folder: [Box to type path of folder,ex: /etc/admin/] Files: [*.*] (default, but changeable)
  • Add Custom Folder to the backup (maybe the ability to increase the number of these dynamically.. but at least 2 or 3 would be good) Folder: /usr/local/bin/ Files: [*.sh]
  • Run command after creating the backup (runs as the asterisk user) Command: /usr/bin/scp $1 user@server2:/backups/PBX22/$1 (Giving us a variable such as $1 with the filename)

Thanks!

mod: options should be accessibly from the gui

Change History

06/28/08 12:21:14 changed by lazytt

  • status changed from new to closed.
  • resolution set to wontfix.
  • description changed.

It seems that you want to add folders and files to the backup that are'nt included by default and then scp it over to another server. These options are currently available. Check out the AMPPROVROOT and SSHBACKUP options in amportal.conf.

06/30/08 09:01:06 changed by richardteachout

  • status changed from closed to reopened.
  • resolution deleted.

I realize it's there, and I currently have a custom script that is used to do this backup functionality. But the real reason why I wanted it in this module is for PBX migration purposes, to make it easier for a non-technical (non-ssh access) admin to be able to take a "full" backup of their PBX, from a single spot... or for people with multiple PBX's to be able to configure their backups in the web interface, and that way, when the restore is completed on a new machine, the identical backups can be configured without needing to "find/re-create" the backup scripts.. freepbx would already have them in the DB.

And actually, that leads me to additional feature that would be nice. 1. The ability to download the backups directly from this web interface. (again, for a non-technical person to be able to easily get an offline backup). 2. Email Notification at the end of the backup job to an email address (or addresses) configured in the job showing results, or just a "freepbx backup completed, file saved as /x/x/x/XYZ.tar.gz"

I would even be willing to donate some of my coding time on this issue, as I think it would be beneficial for others, and I can write this code, if necessary.

(This feature request is not directly for me, I am a RHCE, and have more than enough skills to accomplish this task via bash/perl/amportal.conf/etc, but rather as a convenience methodology for others peace of mind who utilize freepbx and are not as technical)

Let me know.

06/30/08 10:44:30 changed by lazytt

  • description changed.
  • summary changed from Backup/Restore Modules - add additional options to enhance the backup process to Additional options for backup/resotre.

So you want to see these options in the gui...hmm... Well guess what? Me to! By all means, if you can donate your resources it will be greatly appreciated. If you have any coding questions feel free to pop in to #freepbx-dev on irc.freenode.net to chat with a hard working (and under paid !) project dev.

06/30/08 11:37:35 changed by fskrotzki

Also see Ticket 2358. I know that some of what I had asked for is now available via the AMPPROVROOT variable. I'll also second having a GUI to enter or select the info. Specially for selecting some of the folders because if you can't get ssh access in and/or you want to tell a dumb client what to select you/they will might not know where some of these folders are to list them correctly. So having a expanded list to select from would be great.

Also what is really needed is a way to go in and clean up OLD backups. We run one every morning at 4am and it took a over year to fill the drive. Now once a month I go in and remove all old backups except for the 1st and 16th of the previous month. Then for anything older then 6 months I remove all except for the 1st of the month just in case I EVER need to go back for something (like a script I customized that got overwritten and forgotten about).

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads