Commit Graph

10 Commits

Author SHA1 Message Date
jebsolutions 89d4dcb959 additional error handling for backup/restore (#2187)
prerequisite:
- add at least one backup path to the Advanced->defaults
- do NOT install rar archive/de-archive programs

test case #1
- go to backup screen and download backups as rar

test case #2
- go to backup screen and upload a RAR file

expected result:
- get a sign that an error occurs

actual result:
- not clear if it failed, or why

fix:
added error message.  And you will get the top-bar warning in red on error instead of in green.

note: cut-pasted from google translate for "extraction failed" part of message-restore_failed_extract
2016-11-24 20:53:03 -07:00
markjcrane 4b6f4f3801 Make sure the array exists for the backup tool. 2016-04-29 17:13:36 -06:00
Harry G. Coin bda6861f88 \r\n --> \n
Cause all the .php files containing lines ending with \r\n to instead end with \n.

DYI with:

find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
2016-04-25 20:30:23 -05:00
markjcrane 7f082bdef3 Add a missing permission on backup. 2016-04-04 19:51:22 -06:00
Mark Crane c5755666cb Add the text class to more of the applications. 2015-01-18 10:06:08 +00:00
Mark Crane 5e27a20804 Change backup cron script to command because it generates the backup command that could be used in a cron script but its not a cron script. 2014-11-16 00:26:11 +00:00
Nate Jones fca4dbd32f Backup: Added ability to generate a cron script for automated backups. 2014-11-13 07:42:24 +00:00
Nate Jones 620d1002e5 Backup: Completed functionality to back up and restore paths defined in Default Settings. 2014-08-16 22:15:01 +00:00
Mark Crane f431507be2 Build the backup file and add the restore command 2014-08-15 23:49:46 +00:00
Mark Crane 37eb5b203a Add a backup feature 2014-08-15 23:33:20 +00:00