ApostropheCMS database migration #2714
-
|
I need some help on apostrophe content migration! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I don't understand the question. Migrations API is used to migrate changes of your database schema (on one and the same server) and not moving data from one server to another. So the flow will be you do local improvements (developments), you reflect your DB changes as migration scripts, you deploy your new code to the staging server (with your favorite deploy method) and in the end you execute If I understand your problem correctly, you need initial dump from your local DB and initial restore on your staging DB which are described in details in the MongoDB documentation |
Beta Was this translation helpful? Give feedback.
-
|
Yes, if your goal is to move *content* between *servers*, you should use
"mongodump" and "mongorestore". You also need to rsync the public/uploads
folder. And there are sample scripts for it in the "scripts" folder
(assuming A2 and a project born from apostrophe-boilerplate).
…On Mon, Feb 8, 2021 at 11:35 AM Miro Yovchev ***@***.***> wrote:
I don't understand the question. Migrations API is used to migrate changes
of your database schema (on one and the same server) and not moving data
from one server to another. So the flow will be you do local improvements
(developments), you reflect your DB changes as migration scripts, you
deploy your new code to the staging server (with your favorite deploy
method) and in the end you execute node app apostrophe-migrations:migrate
on your staging server.
If I understand your problem correctly, you need initial dump from your
local DB and initial restore on your staging DB which are described in
details in the MongoDB documentation
<https://docs.mongodb.com/manual/tutorial/backup-and-restore-tools/>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2714 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH27O2HBB2OASGWDDGL7TS6AHEJANCNFSM4XIZIJGQ>
.
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
Beta Was this translation helpful? Give feedback.
I don't understand the question. Migrations API is used to migrate changes of your database schema (on one and the same server) and not moving data from one server to another. So the flow will be you do local improvements (developments), you reflect your DB changes as migration scripts, you deploy your new code to the staging server (with your favorite deploy method) and in the end you execute
node app apostrophe-migrations:migrateon your staging server.If I understand your problem correctly, you need initial dump from your local DB and initial restore on your staging DB which are described in details in the MongoDB documentation