This zero-dependency script for Node.js copies all pods from a Node Solid Server (NSS) instance into a Community Solid Server (CSS) instance.
- File access to the configuration and data of an NSS instance (tested with v5.7.7)
- File and HTTP access to the configuration and data of a CSS instance (compatible with v7.x)
./copy-pods-to-css.mjs nss/config.json css/data/ https://css.pod/ [email protected]
where:
nss/config.json
is the file path to the NSS configuration filecss/data/
is the file path the CSS data folderhttps://css.pod/
is the URL to the running CSS instance[email protected]
is the template for CSS usernames, wherexxx
is the old NSS username
This script:
- Creates one CSS account for each NSS pod
- The username changes from
alice
to[email protected]
(configurable) - The password remains the same
- The username changes from
- Copies the contents of each NSS pod to the corresponding CSS pod
- Performs 2 tests per pod
- Access the profile document (assumed public)
- Access the inbox (assumed private)
©2023 Ruben Verborgh – MIT License