# Database Migration

**URL:** <https://forums.plex.tv/t/database-migration/755597>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [November 5, 2021, 12:03pm UTC](https://forums.plex.tv/t/database-migration/755597 "2021-11-05T12:03:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![panandfoo](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@panandfoo](https://forums.plex.tv/u/panandfoo)\
**Post date:** [November 5, 2021, 12:03pm UTC](https://forums.plex.tv/t/database-migration/755597/1 "2021-11-05T12:03:13Z")

</div>

Server Version#: 4.63.0  
Player Version#: n/a  
I plan to move my Plex server to new hardware soon. (Linux → Linux)

Where is the document for migrating the database? I want to preserve custom matches, watched/unwatched status, playlists, and music config. The library structure will be the same as the old server, but the file paths will be different.

Starting over would su-u-uck.

---

<div class="post-metadata">

**Author:** ![pl\_5309](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pl\_5309](https://forums.plex.tv/u/pl_5309)\
**Post date:** [November 5, 2021, 12:17pm UTC](https://forums.plex.tv/t/database-migration/755597/2 "2021-11-05T12:17:12Z")

</div>

The thread should be of help but for your specific question.

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/19):
>
> Moving your media and keeping the metadata - The TL;DR This Tip / How-To, while tagged for Linux, is applicable to all PMS platforms. Preparation Turn off “Empty Trash after Library Scan” Turn off “Automatically Update my Library” Move your media Make any configuration changes or physical media file moving you need to. When you are done, proceed with the actual PMS configuration change Updating your PMS configruation Edit each library section - Folders - ADD the new location. DO N…

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [November 5, 2021, 2:40pm UTC](https://forums.plex.tv/t/database-migration/755597/3 "2021-11-05T14:40:35Z")

</div>

Might want to preface that with :

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/7):
>
> Backup, Restore, or Clone your PMS installation Backing up your PMS data involves the same steps you’ll need if you were to clone your PMS and take to a new computer, reinstall the operating system, or just want a backup for safe keeping. Making the Backup (General Steps) Stop PMS Invoke the root shell Create the backup image Copy the image to the new system, perform your OS reinstallation, or whatever task you need Restoring a backup image (General Steps) (Re)install PMS itself if on a ne…

---

<div class="post-metadata">

**Author:** ![panandfoo](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@panandfoo](https://forums.plex.tv/u/panandfoo)\
**Post date:** [November 26, 2021, 8:53am UTC](https://forums.plex.tv/t/database-migration/755597/4 "2021-11-26T08:53:58Z")

</div>

Thanks for the info - very helpful!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [February 24, 2022, 8:54am UTC](https://forums.plex.tv/t/database-migration/755597/5 "2022-02-24T08:54:01Z")

</div>

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