Comments (2)
I've pushed an update andig/dbcopy@b850d5b. Run composer update
to fetch these changes.
To perform a backup to sqlite follow there steps:
-
create
local.json
{ "source": { "driver": "pdo_mysql", "host": "localhost", "user": "travis", "password": "", "dbname": "volkszaehler" }, "target": { "driver": "pdo_sqlite", "host": "localhost", "user": "travis", "password": "", "dbname": "volkszaehler_backup", "path": "sqlite.db3" // path is only used if driver = pdo_sqlite }, "tables": [ // TABLE DEFINITION // ---------------- // table name // tables will be processed in the order they are mentioned: // - foreign keys on target will be dropped // - if a table is not listed here, it will not be touched // transfer mode // skip: table will not be copied // copy: entire table will be truncated on target and copied from source // pk: selective copy by primary key. only data not present on target // will be copied from source. { "name": "entities", "mode": "copy" }, { "name": "properties", "mode": "copy" }, { "name": "entities_in_aggregator", "mode": "copy" }, { "name": "data", "mode": "pk" }, { "name": "aggregate", "mode": "skip" } ] }
-
create the sqlite schema
php dbcopy.php create -c local.json
-
run the backup
php dbcopy.php backup -c local.json
from volkszaehler.org.
Just did a clean install as my pc died. WFM.
from volkszaehler.org.
Related Issues (20)
- Website down HOT 3
- Push Server seems to consume memory continually. Memory Leak? HOT 19
- Virtualsensor with hourly Price (e.g. Tibber) HOT 2
- Incompatibility of new DB structure and dbcopy
- Every two minutes mariadb warning
- 403 error in apache2 nach genauer anleitung des volkszähler HOT 19
- s0 zähler mit ardurino über usb auslesen HOT 4
- Frontend: Possibility to show weekly values (Enhancement)
- aggregate fails due to division by zero HOT 2
- Plot can not be hide in Frontend
- Network Error - Bad Gateway after Git update HOT 10
- vzcompress2 PHP Deprecated
- https://wiki.volkszaehler.org/hardware/channels/solar_inverters/deye re-implementation
- Service Temporarily Unavailable HOT 2
- Configuration of logrotate in Raspberry image incorrect HOT 2
- Frontend: rightmost bar graphs always overlap its neighbor
- PHP 8.2: Dynamic Properties are deprecated HOT 5
- PPM does not start - Symphony error HOT 1
- /misc/sql/demo.sql uses non existing column
- Cannot connect to MariaDB with standard compose file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volkszaehler.org.