# Export/import database

**URL:** https://community.baserow.io/t/export-import-database/1272
**Category:** Technical Help
**Tags:** docker
**Created:** [August 30, 2022, 10:52am UTC](https://community.baserow.io/t/export-import-database/1272 "2022-08-30T10:52:21Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![petrs](https://community.baserow.io/user_avatar/community.baserow.io/petrs/32/159_2.png) [@petrs](https://community.baserow.io/u/petrs)
#### Post date: [August 30, 2022, 3:24pm UTC](https://community.baserow.io/t/export-import-database/1272/2 "2022-08-30T15:24:34Z")

</div>

Hi @come, since you are self-hosting, you can leverage internal Baserow commands to import & export applications (databases) of a workspace.

So let’s say that your original workspace has `id=60`, then you could export as:

```auto
django-admin export_workspace_applications 60

```

And import on the new instance as:

```auto
django-admin import_workspace_applications 70 workspace_60

```

The `workspace_60` is the name of the export, this would be the default name. `70` would be a workspace id of the new workspace on the new instance. You would need to transfer this file from the old to the new Baserow instance.

These commands are DJango commands, hence why they are called through `django-admin` (or `manage.py` file).

These commands can be run from backend containers in the `docker-compose` setup, not sure from top of my head if this will work out of the box in the single Docker image.

---

_[View the full topic](https://community.baserow.io/t/export-import-database/1272)._
