James Cole [[https://github.com/firefly-iii/firefly-iii/issues/1243|en este ticket/issue]] dice lo siguiente:
To safely migrate (make sure you have backups!) you can do the following:
Create a new (empty) installation of Firefly III.
Copy your old .env file into the new installation. This will not break anything.
Enter the following commands on your command line:
php artisan migrate --seed
php artisan firefly:upgrade-database
php artisan firefly:verify
That should work just fine! 👍
----
Los pasos que hice son:
* Descomprimir y copiar el backup de docker/volumes en la nueva instancia
cp -r back/* /var/lib/docker/volumes/
* Renombrar los logs para que InnoDB no se crea crasheado o alguna locura asĂ
cd /var/lib/docker/volumes/firefly_firefly_iii_db/_data/
mv ib_logfile0 ib_logfile0.old
mv ib_logfile1 ib_logfile1.old
echo '' > ib_logfile0.old (seguĂa metiendo cosas acá, supongo que usa el inode o algo que no es el nombre)
* Acá en este punto ya arranca mariadb/mysql. Falta hacer que la app lo entienda. Ahà entran las instrucciones de JC.
php artisan migrate --seed
php artisan firefly:upgrade-database
php artisan firefly:verify
Revisar las variables de entorno en .env, que tenga el nombre bien, porque usa el dns de docker para buscar la db.
DB_CONNECTION=mysql
DB_HOST=firefly-fireflyiiidb-1
DB_PORT=3306