All Projects → directus-community → migration-tool

directus-community / migration-tool

Licence: other
Automated script to migrate from Directus v8 to Directus v9

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to migration-tool

DataMigrationTeam
Repository for the Data Migration Team
Stars: ✭ 107 (+409.52%)
Mutual labels:  migration
radioDaal
Radio Daal podcast website
Stars: ✭ 16 (-23.81%)
Mutual labels:  migration
tm-tools
some useful tools for tendermint blockstore.db or state.db
Stars: ✭ 14 (-33.33%)
Mutual labels:  migration
php-mongo-migrator
Migrations of MongoDB. Part of @PHPMongoKit
Stars: ✭ 29 (+38.1%)
Mutual labels:  migration
docker-directus
🐇 Directus is an awesome database GUI that provides a feature-rich environment for rapid development and management of custom database schemas.
Stars: ✭ 13 (-38.1%)
Mutual labels:  directus
migrate bitbucket server to bitbucket cloud
Migrate Atlassian Bitbucket Server to Bitbucket Cloud
Stars: ✭ 13 (-38.1%)
Mutual labels:  migration
pg-migrate
PostgreSQL migration tool
Stars: ✭ 39 (+85.71%)
Mutual labels:  migration
butterfly
Application transformation tool
Stars: ✭ 35 (+66.67%)
Mutual labels:  migration
solidbase
Generic migration tool for RDBMS and other resources based on Liquibase
Stars: ✭ 32 (+52.38%)
Mutual labels:  migration
directus-metalsmith-snipcart
Lookbook web app with Directus' open source headless CMS, Metalsmith, Vue.js & Snipcart
Stars: ✭ 14 (-33.33%)
Mutual labels:  directus
vault-migrator
migrate vault data between different physical backends
Stars: ✭ 51 (+142.86%)
Mutual labels:  migration
ProcessMigrator
ProcessWire module that facilitates automated migration and sharing of page trees along with their templates and fields.
Stars: ✭ 29 (+38.1%)
Mutual labels:  migration
machina
Framework for Metastatic And Clonal History INtegrative Analysis
Stars: ✭ 28 (+33.33%)
Mutual labels:  migration
AngularVueIntegration
An opinionated attempt to let Angular 1.x and Vue peacefully live together
Stars: ✭ 28 (+33.33%)
Mutual labels:  migration
great-migration
Copy objects from Rackspace to S3
Stars: ✭ 15 (-28.57%)
Mutual labels:  migration
aurelia-knockout
Adds support for Knockout binding syntax to make transition from Durandal and Knockout to Aurelia simpler.
Stars: ✭ 22 (+4.76%)
Mutual labels:  migration
pg global temp tables
Oracle-style global temporary tables for PostgreSQL
Stars: ✭ 16 (-23.81%)
Mutual labels:  migration
porter
Export legacy forums into a format Vanilla Forums can import.
Stars: ✭ 39 (+85.71%)
Mutual labels:  migration
amazon-s3-data-replication-hub-plugin
The Amazon S3 Transfer Plugin for Data Transfer Hub(https://github.com/awslabs/data-transfer-hub). Transfer objects from S3(in other partition), Alibaba Cloud OSS, Tencent COS, Qiniu Kodo into Amazon S3.
Stars: ✭ 32 (+52.38%)
Mutual labels:  migration
laminas-dependency-plugin
Replace zendframework and zfcampus packages with their Laminas Project equivalents.
Stars: ✭ 32 (+52.38%)
Mutual labels:  migration

Migration Tool

Migrate from a v8 instance to v9 instance.

This tool will copy over:

  • Schema (collections / fields)
  • Files (including file contents)
  • User data (eg all items in all collections)
  • Roles
  • Users

Note: This tool will NOT copy over:

  • Interface/display configurations
  • Permissions
  • Activity / revisions

Usage

  1. Clone this repo
  2. Add a .env file with the following values:

You SHOULD use either Cookie or JWT authentication (leaving one or the other empty).

Using Cookie Authentication provides you with more time to migrate large amounts of data like the project files.

See documentation for more details on obtaining authentication tokens on Directus v8.


V8_URL="https://v8.example.com"
V8_PROJECT_NAME="project"
V8_TOKEN="admin"
V8_COOKIE_TOKEN="cookie_value"

V9_URL="https://v9.example.com"
V9_TOKEN="admin"
  1. Run npm install
  2. Run the index.js file: node index.js

Note: If you want to save the error logs to a folder, you can redirect the error output node index.js 2> errors.txt

Commandline Options


You can exclude collections/database tables from being migrated by using the -s or --skipCollections flag:

node index.js -s <table_name> <another_table_name>

You can pass a context file to resume from a specific point or to modify the data manually that you want to use for the migration by using the -c or --useContext flag:

node index.js -c <path_to_context>

You can allow errors to occur during the migration by using the -l or --allowFailures flag:

node index.js -l

Specifying collection dependencies

If the default detection of the dependencies between collections doesn't work in your case, you can manually specify it with the env variable COLLECTION_ORDER. Just supply a comma separated list in which order you'd need the data of your collections to be imported.

COLLECTION_ORDER="first_collection,second_collection,third_collection"

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].