seawall backup setup
Make the repository (a local folder, S3 or SFTP) and its password (shown once).
Usage
seawall backup setup [OPTIONS] --to <FOLDER|S3|SFTP>
Changes the host
Without --yes it prints the plan and changes nothing.
Options
--to <FOLDER|S3|SFTP>Where restic's repository goes: a local folder (made for root alone), s3:https://<endpoint>/<bucket>[/<path>] or sftp:<user>@<host>[:<port>]:/<path>
--key-env <NAME>For S3, take the access key from this environment variable
--secret-env <NAME>For S3, take the secret key from this environment variable
--ca-file <FILE>For S3, trust this CA certificate (PEM) for the endpoint too, as a self-hosted endpoint with its own CA needs
--host-key <SHA256:...>For SFTP, the server's host key fingerprint to pin, as checked with its admin
--password-env <NAME>Take the password from this environment variable instead of making one
--owner-password-env <NAME>Take the rootless owner's repository password from this environment variable
--yesCarry out the plan (without it, this is a dry run)
Examples
seawall backup setup --to /mnt/backup/seawall
seawall backup setup --to /mnt/backup/seawall --yes
seawall backup setup --to s3:https://s3.example.com/my-bucket/seawall --key-env S3_KEY --secret-env S3_SECRET
seawall backup setup --to sftp:[email protected]:/srv/seawall --yes