diff --git a/backup-module/backup_controller.php b/backup-module/backup_controller.php index 8ad456e..9624550 100644 --- a/backup-module/backup_controller.php +++ b/backup-module/backup_controller.php @@ -16,10 +16,9 @@ function backup_controller() { global $route, $session, $path, $redis, $homedir; $result = false; - // This module is only to be ran by the admin user if (!$session['write'] && !$session['admin']) { - $route->format = "text"; + $route->format = "html"; return "
Error: backup module requires admin access
"; } if (file_exists("$homedir/backup/config.cfg")) { diff --git a/backup-module/backup_menu.php b/backup-module/backup_menu.php index 58e9adb..f8a567a 100644 --- a/backup-module/backup_menu.php +++ b/backup-module/backup_menu.php @@ -1,26 +1,30 @@ "backup_menu", - 'name'=>dgettext($domain, "Backup"), - 'path'=>"backup" , - 'session'=>"write", - 'order' => 0, - 'icon'=>'icon-circle-arrow-down icon-white', - 'hideinactive'=>1 - ); + // $menu_left[] = array( + // 'id'=>"backup_menu", + // 'name'=>dgettext($domain, "Backup"), + // 'path'=>"backup" , + // 'session'=>"write", + // 'order' => 0, + // 'icon'=>'icon-circle-arrow-down icon-white', + // 'hideinactive'=>1 + // ); - $menu_dropdown_config[] = array( - 'id'=>"backup_menu_extras", - 'name'=>dgettext($domain, "Backup"), - 'path'=>"backup" , - 'session'=>"write", - 'order' => 55, - 'icon'=>'icon-circle-arrow-down' - ); + // $menu_dropdown_config[] = array( + // 'id'=>"backup_menu_extras", + // 'name'=>dgettext($domain, "Backup"), + // 'path'=>"backup" , + // 'session'=>"write", + // 'order' => 55, + // 'icon'=>'icon-circle-arrow-down' + // ); - - + $menu['setup'][] = array( + 'text' => _("Backup"), + 'path' => 'backup', + 'icon' => 'box-add', + 'order' => 1 + ); \ No newline at end of file diff --git a/backup-module/backup_view.php b/backup-module/backup_view.php index d89ed80..a531492 100644 --- a/backup-module/backup_view.php +++ b/backup-module/backup_view.php @@ -26,89 +26,116 @@ padding-left:20px; padding-top:20px; } +.nav-tabs > li > a { + color: #999!important; +} +.nav-tabs > li.active > a { + color: #EFEFEF!important; +} +.nav-tabs > li > a:hover { + color: #FFF!important; +} - - -
-
-
- + + + + + +
+
+

Import

+

Import an emoncms backup archive.

+ CAUTION ALL EMONCMS ACCOUNT DATA WILL BE OVERWRITTEN BY THE IMPORTED DATA

+

Note: Before import update to latest version of Emoncms & emonHub.

+
+

+ +
+

+

Note: If browser upload fails for large backup files follow manual import instructions.

+
+
+

Refresh page if log window does not update.

+

After import is complete logout then login using the new imported account login details.

-
- -
+
+

Export

+

Export a compressed archive containing:

+
    +
  • Emoncms MYSQL database
  • +
  • PHPFina data files
  • +
  • PHPTimeSeries data files
  • +
  • EmonHub Config
  • +
+

These files contain all Emoncms data including:

+
    +
  • Input processes
  • +
  • Feed data
  • +
  • Dashboards
  • +
  • EmonHub Config
  • +
+

The compressed archive can be used to migrate data to another emonPi / emonBase.

+ +

+
+
Right Click > Download:
'.$backup_filename.''; + } + ?> +

+

Once export is complete refresh page to see download link.

+

Note: Export can take a long some time, please be patient.

+
+
+ + Warning: service-runner is not running and is required. To install service-runner see service-runner installation
"; } ?> -
-

Export

-

Export a compressed archive containing:

- -

These files contain all Emoncms data including:

- -

The compressed archive can be used to migrate data to another emonPi / emonBase.

- -

-
-
Right Click > Download:
'.$backup_filename.''; - } - ?> -

-

Once export is complete refresh page to see download link.

-

Note: Export can take a long some time, please be patient.

-
- -
-

Import

-

Import an emoncms backup archive.

- CAUTION ALL EMONCMS ACCOUNT DATA WILL BE OVERWRITTEN BY THE IMPORTED DATA

-

Note: Before import update to latest version of Emoncms & emonHub.

-
-

- -
-

-

Note: If browser upload fails for large backup files follow manual import instructions.

-
-
-

Refresh page if log window does not update.

-

After import is complete logout then login using the new imported account login details.

-
-
-