Skip to main content

A TiddlyWeb plugin that provides a command to migrate content from one store to another.

Project description

migrate is a plugin for migrating the content of one
TiddlyWeb store to another. This can provide two functions:

* Duplicating a store to the same format for use elsewhere, or backups.
* Changing the format of the store from one StorageInterface
implementation to another (e.g. from text to sql).

To use 'migrate' the tiddlywebconfig.py in the source
instance should be edited to add 'tiddlywebplugins.migrate' to
'twanager_plugins' and to add a 'target_store' key.

The 'target_store' key's value is the same form as
'server_store', with the config information of the
store being migrated to.

Here's an example that will migrate from the sql store
to the text store, with the data stored in a dir in
/tmp:

config = {
'twanager_plugins': ['tiddlywebplugins.migrate'],
'server_store': ['sql', {'db_config': 'sqlite:///test.db'}],
'target_store': ['text', {'store_root': '/tmp/backupstore'}],
}

Once the configuration is set the twanager command is run:

twanager migrate

If the store is large this may take some time.

When tiddlers are migrated from one store to another, they
are stored as new revisions, so if the target store already
exists and has a tiddler of the same name in the same bag,
it will create a new one, extending the revisions.

Licensed as TiddlyWeb itself.

For more information on TiddlyWeb see http://tiddlyweb.com/

Copyright 2009 Chris Dent.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiddlywebplugins.migrate-0.4.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file tiddlywebplugins.migrate-0.4.tar.gz.

File metadata

File hashes

Hashes for tiddlywebplugins.migrate-0.4.tar.gz
Algorithm Hash digest
SHA256 401c0d29c160ce51ce8faf8c8f3f3b650a0c5c7fd6dc723b930948fcfcb79d24
MD5 6eecf4a81c8bfd906bb4caed4d52ba4e
BLAKE2b-256 615c8932326f337652fd18733f60f9bb8c6dcb4202c95c999f1ccf2c3a821fba

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page