Ticket #1386 (closed Feature Requests: fixed)

Opened 7 years ago

Last modified 3 years ago

Additional backup options

Reported by: colinjack Assigned to:
Priority: minor Milestone: 2.7
Component: Backup & Restore Version: SVN-HEAD
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

I have just done a backup & restore and not everything has come across. It would be nice to be able to choose to backup /tftboot, /var/www/html/cisco/bmp, MOH etc. Maybe a selection of custom directories would be the answer?

Change History

11/19/06 18:36:29 changed by p_lindheimer

  • version changed from 2.2beta2 to SVN-HEAD.
  • milestone set to 2.3.

backup / restore has a lot to be desired ...

01/08/07 14:46:49 changed by

  • milestone deleted.

Milestone 2.3 deleted

01/08/07 15:13:41 changed by vgster

  • milestone set to 2.3.

06/05/07 06:03:16 changed by mbrevda

  • engine_version changed.
  • svn_rev changed.

See also: #1661

01/30/10 18:35:14 changed by mbrevda

  • confirmation set to Unreviewed.

see also #3280

01/30/10 18:36:25 changed by mbrevda

see also #2358

01/30/10 18:36:53 changed by mbrevda

see also #1661

01/30/10 18:38:01 changed by mbrevda

see also #2867

01/30/10 18:47:22 changed by mbrevda

(In [8742]) re #1386; inital checking of majpr backup improvements. This probobly isnt done just yet, although simple testing seems rather posotive. Basicly, this seeks to move all the backup settings from amportal.conf in to the gui. DB structure is something along these lines, this MAY OR MAY NOT WORK for simple migration, so BU first!:

CREATE TABLE IF NOT EXISTS backup ( name varchar(50) default NULL, voicemail  varchar(50) 
default NULL, recordings varchar(50) default NULL, configurations  varchar(50) default 
NULL, cdr varchar(55) default NULL, fop varchar(50)  default NULL, minutes varchar(50) 
default NULL, hours varchar(50) default NULL,  days varchar(50) default NULL, months 
varchar(50) default NULL, weekdays  varchar(50) default NULL, command varchar(200) default 
NULL, method varchar(50)  default NULL, id int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY 
(ID) );
insert into backup select * from Backup;
alter table backup add ftpuser varchar(50), add ftppass varchar(50), add ftphost  
varchar(50), add ftpdir  varchar(150), add sshuser  varchar(50), add sshkey  varchar(150), 
add sshhost  varchar(50), add sshdir  varchar(150), add emailaddr  varchar(75), add 
emailmaxsize  varchar(25), add emailmaxtype varchar(5),add admin  varchar(10), add include 
blob, add exclude blob, add sudo varchar(25);
drop table Backup;

following if a partial changelog up untill this point:

  • Add support for new db schema
  • Rename functions to make them more freepbx complient
  • Clean and disinfect code so that it doesnt look like it was the result of an accident

between nitroglycerine-powered penny-farthing bicycles, spring-loaded notebooks, bulletproof chainmails, flying machines, steam tanks, and giant mechanical spiders

  • Sort backups alphabeticaly
  • More code cleenup
  • More readable save query
  • More readable cron string + bug fixes
  • rename gui element names
  • Handel missing backup names gracefully
  • parts of the gui to enter additional settings
  • update backup script to reflect new db/variable structure
  • naming changes
  • dont insert blank values in to the db, so that the db sets them to null
  • Make 'now' backups use the db as its source of info
  • fix admin setting not being saved
  • fix email max type typo's

TODO:

  • proper migration, taking in to account that sqlite cant alter table
  • add all current amportal var settings in to migrated (pre-exisitngs) backups

01/30/10 21:34:42 changed by p_lindheimer

  • milestone changed from 2.8 to 2.7.

02/01/10 19:11:03 changed by mbrevda

  • status changed from new to closed.
  • resolution set to fixed.

(In [8752]) closes #1386;

  • removing schedule_functions - moving all functions to functions.inc.php
  • fixes ftp backup temp file
  • imrpove handeling of includes, widen textarea for include/exclude names
  • better handeling of excludes
  • add migration script
  • update uninstall script to reflect new db schema
  • version bump

02/01/10 19:18:19 changed by mbrevda

(In [8753]) re #1386; remove old Backup table after migraton

02/02/10 03:19:02 changed by mbrevda

(In [8758]) re #1386; fix inital migrate insert

02/03/10 03:51:04 changed by mbrevda

(In [8773]) re #1386; further tweaks to install script, versiovbump