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"

留言

熱門文章