Page MenuHomeDevCentral

Migrate zed_code data to acquisitariat
Closed, ResolvedPublic

Event Timeline

dereckson raised the priority of this task from to Normal.
dereckson updated the task description. (Show Details)
dereckson added a subscriber: dereckson.
dereckson claimed this task.

Operations log

$ docker run --name tmp-zed-code-mysql -v /data/phabricator-zed/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=`openssl rand -hex 21`
$ docker run -dt --link tmp-zed-code-mysql:mysql -v /data/phabricator-zed/repo:/var/repo -v /data/phabricator-zed/conf/:/opt/phabricator/conf -p 36080:80 -e PHABRICATOR_URL="http://code.zed.dereckson.be" --name zed-code nasqueron/phabricator
bd1d45eb1f14
$ docker exec -it tmp-zed-code-mysql
# Reset root access, as it were a folder for localhost MySQL access
$ docker exec -it zed-code
$ bin/storage upgrade --force
$ bin/storage dump > /tmp/zed.sql
$ bin/storage renamespace --in /tmp/zed.sql --from phabricator --to zedphab > /tmp/zedphab.sql
$ logout
$ docker cp bd1d45eb1f14:/tmp/zedphab.sql /tmp/zedphab.sql
$ docker cp /tmp/zedphab.sql acquisitariat:/tmp/zedphab.sql
$ docker rm -f zed-code
$ docker rm -f tmp-zed-code-mysql
$ docker exec -it acquisitariat bash
$ mysql -uroot -p$MYSQL_ROOT_PASSWORD < /tmp/zedphab.sql