# A0deploy database custom scripts being exported without custom database

**URL:** <https://community.auth0.com/t/a0deploy-database-custom-scripts-being-exported-without-custom-database/106661>\
**Category:** Get Help\
**Tags:** clients, management-api\
**Created:** [May 10, 2023, 7:13pm UTC](https://community.auth0.com/t/a0deploy-database-custom-scripts-being-exported-without-custom-database/106661 "2023-05-10T19:13:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnikkhoui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nnikkhoui/32/46465_2.png) [@nnikkhoui](https://community.auth0.com/u/nnikkhoui)\
**Post date:** [May 10, 2023, 7:13pm UTC](https://community.auth0.com/t/a0deploy-database-custom-scripts-being-exported-without-custom-database/106661/1 "2023-05-10T19:13:16Z")

</div>

I am doing an export with `a0deploy`  
(full command:`a0deploy export --format=yaml -c=auth0/config-dev.json --output_folder=auth0/local`)  
and I do not have a custom database enabled. However, I still am getting the `database/Username-Password-Authentication` directory getting exported and it is full of boilerplate/empty scripts. The documentation states that in addition to `tenant.yaml`, only supplementary files should be exported (actions, branding, etc).

Is this meant to happen, or is this a bug?

Database setup

 ![Screen Shot 2023-05-10 at 2.17.07 PM](https://global.discourse-cdn.com/auth0/original/3X/1/7/17ddf1a93cb6e0d57ece628b44d59ebb812f7550.png)

Directory of files being exported

 ![Screen Shot 2023-05-10 at 3.11.35 PM](https://global.discourse-cdn.com/auth0/original/3X/5/1/512951ac84a653c36e145cc55f62260f1e1fd10b.png)

All scripts are this boilerplate

 ![Screen Shot 2023-05-10 at 3.12.01 PM](https://global.discourse-cdn.com/auth0/original/3X/e/8/e8e222ff084aa950097ddf622d6c2c29341fa0a1.png)

---

<div class="post-metadata">

**Author:** ![sylvainf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sylvainf/32/35478_2.png) [@sylvainf](https://community.auth0.com/u/sylvainf)\
**Post date:** [May 11, 2023, 9:42am UTC](https://community.auth0.com/t/a0deploy-database-custom-scripts-being-exported-without-custom-database/106661/3 "2023-05-11T09:42:15Z")

</div>

Hi again @nnikkhoui

I just tested your command and got the same results. This is expected since these are the template scripts provided by default in Auth0 Tenants. I agree that since you’re not licensed for this feature we could exclude them from the export - I will ask internally.

In the meantime, you could exclude databases from the export with an exclusion (I knew they would be useful!) as in the below:

> {  
> “AUTH0\_DOMAIN”: “[your-tenant.eu.auth0.com](http://your-tenant.eu.auth0.com)”,  
> “AUTH0\_CLIENT\_ID”: “my deploy cli app id”,  
> “AUTH0\_CLIENT\_SECRET”: “my secret”,  
> **“AUTH0\_EXCLUDED”: [“databases”],**  
> “AUTH0\_KEYWORD\_REPLACE\_MAPPINGS”: {  
> “AUTH0\_TENANT\_NAME”: “my\_tenant”  
> },  
> “{auth0AllowDelete}”: false,  
> “{auth0Excluded}”:   
> }

---

<div class="post-metadata">

**Author:** ![nnikkhoui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nnikkhoui/32/46465_2.png) [@nnikkhoui](https://community.auth0.com/u/nnikkhoui)\
**Post date:** [May 11, 2023, 12:50pm UTC](https://community.auth0.com/t/a0deploy-database-custom-scripts-being-exported-without-custom-database/106661/4 "2023-05-11T12:50:03Z")

</div>

ok! just wanted to double check that was expected, but yes i agree that it doesn’t make too much sense to have them exported. thank you again @sylvainf !

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 11, 2023, 12:57pm UTC](https://community.auth0.com/t/a0deploy-database-custom-scripts-being-exported-without-custom-database/106661/5 "2023-05-11T12:57:44Z")

</div>

We’re here for you @nnikkhoui !

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 25, 2023, 12:58pm UTC](https://community.auth0.com/t/a0deploy-database-custom-scripts-being-exported-without-custom-database/106661/6 "2023-05-25T12:58:20Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
