1.0.14 • Published 7 years ago

webhook-migrate v1.0.14

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

webhook-migrate

Reads a local backup of a webhook site, the same one that is produced by wh preset-data-all. Writes a copy of the local backup, with all of the files re-uploaded to the new webhook instance. Used to migrate files from one instance of webhook, to another. Such as moving from a webhook.org site, to a self hosted webhook site.

The whole dance looks like:

wh create project-to-migrate-to
cd project-to-migrate-from/
wh preset-data-all
mv .preset-data.json ../project-to-migrate-to/migrate-from.json
cd project-to-migrate-to/
wh-migrate migrate-from.json restore-from.json \
  --from=project-to-migrate-from.webhook.org

This will write .new-preset-data.json, which will be a copy of project-to-migrate-from/.preset-data.json. To restore from this copy use the local webhook CMS to restore from a backup.

Exposed interfaces

{ Migrate, requiredOptions, mapArgumentsToOptions }

In addition to exposing the function that will do the migration, the requiredOptions and mapArgumentsToOptions are also exposed. Should you be interested in wrapping this module with one that extends the CLI arguments array to function options object some other way.

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago