https://github.com/emoncms/backup
emoncms backup module
https://github.com/emoncms/backup
Last synced: 3 months ago
JSON representation
emoncms backup module
- Host: GitHub
- URL: https://github.com/emoncms/backup
- Owner: emoncms
- License: agpl-3.0
- Created: 2016-02-04T20:49:31.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-07-09T15:31:53.000Z (9 months ago)
- Last Synced: 2025-07-09T16:45:51.527Z (9 months ago)
- Language: Shell
- Size: 2.39 MB
- Stars: 1
- Watchers: 8
- Forks: 15
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Emoncms backup export and import tool for backup and migration
* Export a compressed archive containing Emoncms Inputs, Feed data, Dashboards & config
* Backup contains the Emoncms MYSQL database, phpfina, phptimeseries data files, emonhub.conf and emoncms.conf
* Import compressed archive into another Emoncms account
## User Guide
[Backup module User Guide](https://guide.openenergymonitor.org/setup/import/)
Via Emoncms module web interface [(see video screencast guide)](https://www.youtube.com/watch?v=5U_tOlsWjXM) or manual (see below for manual instructions):
## Install
**Requirements**
- Latest emoncms master or stable branch, installed in /var/www/emoncms
- Emoncms with redis enabled
- Emoncms with service-runner service running (see: [Emoncms: Install Service-runner](https://github.com/emoncms/emoncms/blob/master/scripts/services/install-service-runner-update.md))
If you have not done so already, install the EmonScripts repository:
cd /opt/openenergymonitor
git clone https://github.com/openenergymonitor/EmonScripts.git
Install this module in /opt/emoncms/modules:
cd /opt/emoncms/modules
git clone https://github.com/emoncms/backup.git
Run backup module installation script to modify php.ini and setup uploads folder:
cd backup
./install.sh
## Manual Export Instructions
Run `./emoncms-export.sh`
## Manual Import Instructions
If importing large backup files browser upload method may fail. In this case follow:
1. Copy `emoncms-backup-xxx.tar.gz` backup file to `data_source_path` in `config.cfg`
2. Run `./emoncms-import.sh`