HTTP
#The HTTP integration allows Plakar to use an HTTP endpoint as a Kloset store backend. Its used to connect to a Kloset store exposed by plakar server.
The HTTP integration provides one connector:
| Connector type | Description |
|---|---|
| Storage connector | Host a Kloset store on any HTTP accessible endpoint |
Installation
#In Plakar v1.0.5 and earlier, the HTTP integration must be installed before HTTP stores can be accessed.
Pre-compiled packages are available for common platforms and provide the simplest installation method.
Logging In
Pre-built packages require Plakar authentication. See Logging in to Plakar for details.
Install the SFTP package:
$ plakar pkg add httpVerify installation:
$ plakar pkg listSource builds are useful when pre-built packages are unavailable or when customization is required.
Prerequisites:
- Go toolchain compatible with your Plakar version
Build the package:
$ plakar pkg build httpA package archive will be created in the current directory (e.g., http_v1.0.0_darwin_arm64.ptar).
Install the package:
$ plakar pkg add ./http_v1.0.0_darwin_arm64.ptarVerify installation:
$ plakar pkg listTo list, upgrade, or remove the package, see managing packages guide.
Connectors
#Storage connector
#The HTTP storage connector uses an HTTP endpoint as the backend for a Kloset store.
Configure
## Initialize a Kloset store at the HTTP endpoint
$ plakar at http://example.com/data create
# Back up a local directory to the store
$ plakar at http://example.com/data backup /var/www
# List snapshots in the store
$ plakar at http://example.com/data lsOptions
#| Option | Required | Description |
|---|---|---|
location |
Yes | URL of the HTTP endpoint, for example http://example.com/data |