Linux

Where Does Flagsmith Store Flags?

Where self hosted Flagsmith keeps flags in database on Linux servers. Exact folders are covered below.

Last updated

Flagsmith is feature flags with server storage. The database holds flags, segments, and identities. SDKs cache evaluations locally per app.

Same database means same toggles. Exact paths vary by Docker versus managed installs. Keep backups on schedule. One missing table restores flags without audit trails. For moves, stop writes first to avoid split evaluations during copies. Screenshots of settings help when support asks for reproduction steps later. Check the in app storage readout when sizes look wrong on different releases.

Where Flagsmith Flags stores this, by platform

Linux
/var/lib/flagsmith (database, paths vary by install)

Flags live in the server database with audit history. Back up the database stopped. Match releases before restore. SDKs cache locally.

Frequently asked questions

How do I migrate Flagsmith to a new server?

Back up the Flagsmith database with services stopped, then install the same release on the new server before restore. Flags follow the database. Mixed releases can refuse old schemas, so match versions first. Keep admin keys separate.

Does Flagsmith back up flag history?

Yes, in the server database per flag with audit history attached. The host holds a working copy plus SDK cache. Views rebuild after restore. Export JSON files from admin settings for records, since the data directory alone is working state.

Notice an outdated path? Let us know.