Gogs Migrate from SQLite to PostgreSQL

Backup from SQLite

$>  cd gogs
$>  ./gogs.exe backup --database-only --archive-name "gogs_db.bk" --config "custom/conf/app.ini"


Restore to PostgreSQL

edit custom/conf/app.ini

[database]
DB_TYPE = postgres
HOST = 192.168.99.100:5433
NAME = test
USER = postgre
PASSWD = postgre
SSL_MODE = disable
PATH = data/gogs.db

$> ./gogs.exe restore --database-only --from "gogs_db.bk" --config "custom/conf/app.ini"
張貼留言

這個網誌中的熱門文章

解釋scope.$apply用來做什麼? -- AngularJS

Unions 在C語言的簡單介紹

JavaScript的Timer用法