by chance do you know what exactly does "fleet pre...
# kolide
r
by chance do you know what exactly does "fleet prepare db" if the database is already initialized and with data from a previous version of kolide?
s
It performs the SQL migrations. If there are no migrations to run, it does nothing. We use
fleet prepare db
as the
ExecStartPre
in our systemd service file
👍 2
r
so it's safe to run, no data wiping right? i asked because i think that's the same command we issued to initalized the DB
s
No data wiping. It runs the SQL statements contained here: https://github.com/kolide/fleet/tree/master/server/datastore/mysql/migrations
Of course, you should always make sure you have a backup before performing migrations
👍 2
z
Fleet migrations are designed to maintain your data. That said we absolutely recommend performing backups before running migrations. Basically agreeing with everything @sundsta said.
👍 2