Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd_migrate_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ type migrateDBCommand struct {
PprofPort int `long:"pprof-port" description:"Enable pprof profiling on the specified port"`
ForceNewMigration bool `long:"force-new-migration" description:"Force a new migration from the beginning of the source DB so the resume state will be discarded"`
ForceVerifyDB bool `long:"force-verify-db" description:"Force a verification verifies two already marked (tombstoned and already migrated) dbs to make sure that the source db equals the content of the destination db"`
ChunkSize uint64 `long:"chunk-size" description:"Chunk size for the migration in bytes"`
ChunkSize uint64 `long:"chunk-size" description:"Chunk size for the migration in bytes (default: 20971520, i.e. 20MB; max: 524288000, i.e. 500MB)"`
}

func newMigrateDBCommand() *migrateDBCommand {
Expand All @@ -112,7 +112,7 @@ func newMigrateDBCommand() *migrateDBCommand {
},
},
Dest: &DestDB{
Backend: lncfg.PostgresBackend,
Backend: lncfg.SqliteBackend,
Postgres: &postgres.Config{},
Sqlite: &Sqlite{
Config: &sqlite.Config{},
Expand Down
12 changes: 6 additions & 6 deletions docs/data-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,27 +237,27 @@ Help Options:
--force-new-migration Force a new migration from the beginning of the source DB so the resume state will be discarded
--force-verify-db Force a verification verifies two already marked (tombstoned and already migrated) dbs to make sure that the source db equals the
content of the destination db
--chunk-size= Chunk size for the migration in bytes
--chunk-size= Chunk size for the migration in bytes (default: 20971520, i.e. 20MB; max: 524288000, i.e. 500MB)

source:
--source.backend=[bolt] The source database backend. (default: bolt)

bolt:
--source.bolt.dbtimeout= Specify the timeout value used when opening the database. (default: 1m0s)
--source.bolt.data-dir= Lnd data dir where bolt dbs are located.
--source.bolt.tower-dir= Lnd watchtower dir where bolt dbs for the watchtower server are located.
--source.bolt.data-dir= Lnd data dir where bolt dbs are located. (default: ~/.lnd/data)
--source.bolt.tower-dir= Lnd watchtower dir where bolt dbs for the watchtower server are located. (default: ~/.lnd/data)

dest:
--dest.backend=[postgres|sqlite] The destination database backend. (default: postgres)
--dest.backend=[postgres|sqlite] The destination database backend. (default: sqlite)

postgres:
--dest.postgres.dsn= Database connection string.
--dest.postgres.timeout= Database connection timeout. Set to zero to disable.
--dest.postgres.maxconnections= The maximum number of open connections to the database. Set to zero for unlimited.

sqlite:
--dest.sqlite.data-dir= Lnd data dir where sqlite dbs are located.
--dest.sqlite.tower-dir= Lnd watchtower dir where sqlite dbs for the watchtower server are located.
--dest.sqlite.data-dir= Lnd data dir where sqlite dbs are located. (default: ~/.lnd/data)
--dest.sqlite.tower-dir= Lnd watchtower dir where sqlite dbs for the watchtower server are located. (default: ~/.lnd/data)

sqlite-config:
--dest.sqlite.sqlite-config.timeout= The time after which a database query should be timed out.
Expand Down