https://github.com/masipcat/caddy-storage-migrator
Import/Export TLS data from filesystem to another storage and viceversa
https://github.com/masipcat/caddy-storage-migrator
caddy certmagic tls v2
Last synced: about 1 year ago
JSON representation
Import/Export TLS data from filesystem to another storage and viceversa
- Host: GitHub
- URL: https://github.com/masipcat/caddy-storage-migrator
- Owner: masipcat
- License: agpl-3.0
- Created: 2020-12-13T12:47:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-14T21:58:07.000Z (over 5 years ago)
- Last Synced: 2025-04-02T23:05:59.097Z (about 1 year ago)
- Topics: caddy, certmagic, tls, v2
- Language: Go
- Homepage: https://gitlab.masip.cat/masipcat/caddy-storage-migrator
- Size: 56.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Caddy Storage Migrator
[](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master) [](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master)
This is a simple command line application to import/export storage data from Caddy v2 (or Certmagic).
Right now supports the following modules:
- `redis` ([caddy-tlsredis](https://github.com/gamalan/caddy-tlsredis))
## Build
First we need to build the command:
```sh
cd cmd/migrator
go build
```
## Usage
Now we can **import** existing data with the following command:
```sh
./migrator import /path/to/existing/caddypath
```
...or **export** the redis data to the filesystem:
```sh
./migrator export ./any/folder
```
Optionally the command accepts the flag `-config path/to/file.json`.
The JSON file should contain at least the storage configuration:
```json
{
"storage": {
"..."
}
}
```