What are schema.db file

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.

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:

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:
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:

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: