migrar_base_de_firefly_iii_a_una_nueva_instancia

This is an old revision of the document!


James Cole 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
migrar_base_de_firefly_iii_a_una_nueva_instancia.1674422707.txt.gz · Last modified: 2024/10/17 21:42 (external edit)