Hallo Andreas,
hier die dbcopy.yaml:
# DATABASE DEFINITION
target:
driver: pdo_mysql
host: localhost
user: root
password: demo
dbname: volkszaehler
target:
driver: pdo_mysql
host: localhost
user: root
password: demo
dbname: volkszaehler
source:
driver: pdo_sqlite
host: localhost
user: root
password: raspberry
dbname: volkszaehler_backup
path: sqlite.db3 # path is only used if driver = pdo_sqlite
# influxdb target database connection
influx:
dsn: influxdb://localhost:8086
dbname: volkszaehler
measurement: data
driver: pdo_sqlite
host: localhost
user: root
password: raspberry
dbname: volkszaehler_backup
path: sqlite.db3 # path is only used if driver = pdo_sqlite
# influxdb target database connection
influx:
dsn: influxdb://localhost:8086
dbname: volkszaehler
measurement: data
# TABLE DEFINITION
# ----------------
# 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.
tables:
entities: copy
properties: copy
entities_in_aggregator: copy
data: pk
aggregate: skip
# ----------------
# 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.
tables:
entities: copy
properties: copy
entities_in_aggregator: copy
data: pk
aggregate: skip
Beste Grüße
JD.
Sent: Saturday, November 07, 2020 at 8:10 PM
From: "Andreas Götz" <cpui...@gmail.com>
To: "volkszaehler.org - users" <volkszaehler-users@demo.volkszaehler.org>
Subject: Re: [vz-users] Neubeginn nach Kartencrash
From: "Andreas Götz" <cpui...@gmail.com>
To: "volkszaehler.org - users" <volkszaehler-users@demo.volkszaehler.org>
Subject: Re: [vz-users] Neubeginn nach Kartencrash
Ist ohne Deine Datei schwer zu sagen...
Viele Grüße,
Andreas
Am 07.11.2020 um 18:12 schrieb John Doe <john...@null.net>:
Hallo zusammen,da ich mir leider doch das Vorgehen vom letzten Mal nicht notiert habe, fehlt mir jetzt wieder der Einstieg.Ich habe- eine Kopie sqlite.db3 der Datenbank- eine Kopie der vzlogger.conf- eine Kopie der dbcopy.yaml, mir der ich die Datenbank-Kopie erstellt habe.Ich habe- das aktuelle VZ-Image installiert und mit Updates versehen- die Kopie sqlite.dpb3 in das neue Home-Verzeichnis kopiert- die gesicherte vzlogger.conf und dbcopy.yaml nach /etc kopiert.Ein Aufruf vonsudo /var/www/volkszaehler.org/vendor/bin/dbcopy create -c /etc/dbcopy.yamlbringtCreating target schema
PHP Notice: Undefined variable: schema in /home/pi/volkszaehler.org/vendor/andig/dbcopy/src/Command/CreateCommand.php on line 155
PHP Fatal error: Uncaught Error: Call to a member function toSql() on null in /home/pi/volkszaehler.org/vendor/andig/dbcopy/src/Command/CreateCommand.php:155
Stack trace:
#0 /home/pi/volkszaehler.org/vendor/symfony/console/Command/Command.php(255): DatabaseCopy\Command\CreateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /home/pi/volkszaehler.org/vendor/symfony/console/Application.php(921): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /home/pi/volkszaehler.org/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(DatabaseCopy\Command\CreateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/pi/volkszaehler.org/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Co in /home/pi/volkszaehler.org/vendor/andig/dbcopy/src/Command/CreateCommand.php on line 155Was mache ich denn diesmal wieder falsch ?Beste GrüßeJD.