<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Move/Migrate database from dbfs root (s3) to other mounted s3 bucket in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29891#M21587</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a databricks database that has been created in the dbfs root S3 bucket, containing managed tables. I am looking for a way to move/migrate it to a mounted S3 bucket instead, and keep the database name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any good ideas on how this can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jan &lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 13:08:18 GMT</pubDate>
    <dc:creator>Jan_A</dc:creator>
    <dc:date>2022-02-02T13:08:18Z</dc:date>
    <item>
      <title>Move/Migrate database from dbfs root (s3) to other mounted s3 bucket</title>
      <link>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29891#M21587</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a databricks database that has been created in the dbfs root S3 bucket, containing managed tables. I am looking for a way to move/migrate it to a mounted S3 bucket instead, and keep the database name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any good ideas on how this can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jan &lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 13:08:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29891#M21587</guid>
      <dc:creator>Jan_A</dc:creator>
      <dc:date>2022-02-02T13:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Move/Migrate database from dbfs root (s3) to other mounted s3 bucket</title>
      <link>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29892#M21588</link>
      <description>&lt;UL&gt;&lt;LI&gt;Just copy all data and than alter table location:&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;ALTER TABLE table_name [PARTITION partition_spec] SET LOCATION 'new_location';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Alternatively create new table in new location and than use INSERT INTO SELECT to move data&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 02 Feb 2022 14:19:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29892#M21588</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-02-02T14:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Move/Migrate database from dbfs root (s3) to other mounted s3 bucket</title>
      <link>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29894#M21590</link>
      <description>&lt;P&gt;Hi @Kaniz Fatma​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Partly... Copied data and alter table works fine, but the database location still points to the root location. So when new tables are created (with no location), they are create in root. So a way to change the database location would be nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;     &lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 07:54:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29894#M21590</guid>
      <dc:creator>Jan_A</dc:creator>
      <dc:date>2022-02-08T07:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Move/Migrate database from dbfs root (s3) to other mounted s3 bucket</title>
      <link>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29895#M21591</link>
      <description>&lt;P&gt;Hi @Jan Ahlbeck​&amp;nbsp;&lt;/P&gt;&lt;P&gt;we can use below property to set the default location:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"spark.sql.warehouse.dir": "S3 URL/dbfs path"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 04:32:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/move-migrate-database-from-dbfs-root-s3-to-other-mounted-s3/m-p/29895#M21591</guid>
      <dc:creator>User16753724663</dc:creator>
      <dc:date>2022-03-08T04:32:48Z</dc:date>
    </item>
  </channel>
</rss>

