You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
}
]
}
Here's what I did:
"source": {
// source database connection
"driver": "pdo_mysql",
"host": "localhost",
"user": „vz",
"password": „<sssh!>",
"dbname": "volkszaehler"
},
"target": {
// target database connection
"driver": "pdo_sqlite",
"path": "sqlite.db3", // path is only used if driver = pdo_sqlite
"host": "localhost",
"user": "travis",
"password": ""
// "dbname": „backup“
[…] remainder: default
php /opt/dbcopy/dbcopy.php create -c /opt/dbcopy/dbcopy.json
Creating target schema
renaming assets for target platform: sqlite
table: data
table: entities
table: entities_in_aggregator
table: properties
-> doesn't seem to create a sqlite db
s. https://demo.volkszaehler.org/pipermail/volkszaehler-users/2014-November/004887.html
The text was updated successfully, but these errors were encountered: