[vz-users] VZ Backup

Andreas Goetz cpuidle at gmail.com
Tue Feb 10 20:53:50 CET 2015


Hi Sirko,

2015-02-03 10:23 GMT+01:00 Sirko <mail_ist at nurfuerspam.de>:

>  Hi,
>
> hat funktioniert, danke,
>
> Mein Plan ist, die ausufernde DB des Raspis in eine andere MySql-DB zu
> schieben. Das funktioniert auch, bis auf einen kleinen Fehler:
>
> pi at raspberrypi /var/www/volkszaehler.org/misc/tools $ sudo php dbcopy.php
> backup -c dbcopy.json
> entities: copying 10 rows (overwrite)
>  10/10 [============================] 100%
>
> properties: copying 90 rows (overwrite)
>  90/90 [============================] 100%
>
> entities_in_aggregator: copying 0 rows (overwrite)
>     0 [>---------------------------]PHP Warning:  Division by zero in
> /var/www/
> volkszaehler.org/vendor/symfony/console/Symfony/Component/Console/Helper/ProgressBar.php
> on line 400
> PHP Warning:  Division by zero in /var/www/
> volkszaehler.org/vendor/symfony/console/Symfony/Component/Console/Helper/ProgressBar.php
> on line 401
>     0 [>---------------------------]
>
> data: copying 6594 rows (partial copy)
>  6595/6595 [============================] 100%
>
> aggregate: skipping
>
> Die Tabelle entities_in_aggregator ist leer bei mir. Ist das normal???
>
>
> Meine Frage ist jetzt, wie reagiert das dbcopy auf eine mit vzcompress
> ausgedünnte Source-DB?
> Wenn ich das richtig verstanden hab, dann checkst du nicht auf
> Veränderung, sondern kopierst nur "höhere" Werte in der "ID"-Spalte?
> Oder woran machst du die Änderungen fest?
>

Korrekt. Insofern hätte Dein Backup also volle Größe mit allen Details. Im
Zweifel könntest/müsstest Du vzcompress also auch über das Back drüber
laufen lassen oder Dich einfach freuen dass es irgendwo noch Daten in
voller Auflösung gibt.

Viele Grüße,
Andreas



>
> Grüße
> Sirko
>
> Am 02.02.2015 um 15:38 schrieb Andreas Goetz:
>
> Hi,
>
> 2015-02-02 15:23 GMT+01:00 Sirko <mail_ist at nurfuerspam.de>:
>
>>  Hi Andreas,
>>
>> kann es sein, daß misc/tools/dbcopy.php nicht existiert?
>>
>
> Normalerweise ja...
>
>
>>  Das müßte doch hier neben dem dbcopy.json liegen? Oder hab ich das was
>> falsch verstanden?
>>
>
>  In diesem Fall wird es aber über Composer dort hinkopiert:
>
>     "scripts": {
>         "post-install-cmd": "php -r
> \"@copy('vendor/andig/dbcopy/dbcopy.php', 'misc/tools/dbcopy.php');\""
>     }
>
>  Viele Grüße,
> Andreas
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20150210/1376089a/attachment-0001.html>


More information about the volkszaehler-users mailing list