Difference between revisions of "2018/01/14"
< 2018
Jump to navigation
Jump to search
(Created page with "==2018-01-14== My current plan is: # create a new Postgres db for toot.cat's Mastodon # migrate the data there # create new user "tootcat" # install Mastodon under "tootcat" #...") |
(saving work) |
||
Line 11: | Line 11: | ||
## run the migration script | ## run the migration script | ||
## reconfigure nginx to point to the new instance | ## reconfigure nginx to point to the new instance | ||
+ | ===Notes=== | ||
+ | Inside /root/backups: | ||
+ | : <code>su - postgres -c 'pg_dump mastodon' > tootcat.sql</code> | ||
+ | |||
+ | Upgrading Mastodon: [https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Updating-Mastodon-Guide.md official] | ||
+ | |||
+ | I'm calling the new db <code>tootcat-masto-r1</code> (toot.cat Mastodon db revision 1) (possibly with '-' replaced by '_'). | ||
+ | |||
+ | Probably just need to do this next: <code>CREATE DATABASE tootcat-masto-r1;</code> |
Revision as of 14:32, 14 January 2018
2018-01-14
My current plan is:
- create a new Postgres db for toot.cat's Mastodon
- migrate the data there
- create new user "tootcat"
- install Mastodon under "tootcat"
- run Mastodon's schema upgrade rake task
- test the result as https://new.toot.cat (get it working)
- write a script to automate the data migration
- in close succession:
- run the migration script
- reconfigure nginx to point to the new instance
Notes
Inside /root/backups:
su - postgres -c 'pg_dump mastodon' > tootcat.sql
Upgrading Mastodon: official
I'm calling the new db tootcat-masto-r1
(toot.cat Mastodon db revision 1) (possibly with '-' replaced by '_').
Probably just need to do this next: CREATE DATABASE tootcat-masto-r1;