# What are schema.db file

**URL:** <https://forum.weaviate.io/t/what-are-schema-db-file/919>\
**Category:** General\
**Created:** [November 7, 2023, 7:29am UTC](https://forum.weaviate.io/t/what-are-schema-db-file/919 "2023-11-07T07:29:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dharanish](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dharanish/32/659_2.png) [@Dharanish](https://forum.weaviate.io/u/Dharanish)\
**Post date:** [November 7, 2023, 7:29am UTC](https://forum.weaviate.io/t/what-are-schema-db-file/919/1 "2023-11-07T07:29:43Z")

</div>

schema.db,classification.db,migration1.19.filter2search.state,migration1.19.filter2search.skip.flag

what are these files and use of these ? do I need permission to use these files for backup by copying to other machine. If yes what permission I need.

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 7, 2023, 1:10pm UTC](https://forum.weaviate.io/t/what-are-schema-db-file/919/2 "2023-11-07T13:10:02Z")

</div>

Hi! Those will store the actual data and some other meta data so Weaviate can actually work.

If you want to do backup, you should avoid copying those files directly.

For a better backup flow, check out this documentation:

> **[Backups | Weaviate - vector database](https://weaviate.io/developers/weaviate/configuration/backups#create-backup)**
>
> \- References Backups

TL;DR - enable filesystem backups

1. Add `backup-filesystem` to **ENABLE\_MODULES** environment variable in your Weaviate Server (there are other backups modules, such as AWS S3, Azure, etc.)
2. Add **BACKUP\_FILESYSTEM\_PATH** as environment variable in your Weaviate Server pointing to where your backups should be store
3. Run your backup code:

```auto
import weaviate

client = weaviate.Client('http://localhost:8080')
result = client.backup.create(
  backup_id='my-very-first-backup',
  backend='filesystem',
  include_classes=['Article', 'Publication'],
  wait_for_completion=True,
)

print(result)

```

now your **BACKUP\_FILESYSTEM\_PATH** will contains a folder called `my-very-first-backup` you can store that folder anywhere you want.

Whenever you want to restore a backup, copy that same folder to your **BACKUP\_FILESYSTEM\_PATH** and run the restore code:

```auto
result = client.backup.restore(
  backup_id="my-very-first-backup",
  backend="filesystem",
  exclude_classes="Article",
  wait_for_completion=True,
)

print(result)

```

Here you can find more information about backup routines:

> **[Backups | Weaviate - vector database](https://weaviate.io/developers/weaviate/configuration/backups)**
>
> \- References Backups
