dvs storage add
Add a new storage remote configuration.
Syntaxβ
dvs storage add [name] [options]
Optionsβ
| Option | Description |
|---|---|
--type <transport> | Transport type: ssh, sftp, ftp, s3, gdrive, local |
Interactive Modeβ
Without arguments, starts interactive configuration:
dvs storage add
Prompts for:
- Storage name
- Transport type
- Transport-specific parameters (host, path, credentials...)
CLI Modeβ
# Add with transport type
dvs storage add mybackup --type sftp
# Then configure parameters
dvs storage set mybackup.default.host backup.example.com
dvs storage set mybackup.default.path /backups
dvs storage set mybackup.default.user admin
Transport Parametersβ
SSH / SFTPβ
| Parameter | Required | Description |
|---|---|---|
host | Yes | Server hostname or IP |
port | No | Port (default: 22) |
user | Yes | SSH username |
path | Yes | Remote base path |
key | No | Path to private key |
S3β
| Parameter | Required | Description |
|---|---|---|
endpoint | Yes | S3 endpoint URL |
bucket | Yes | Bucket name |
access_key | Yes | Access key ID |
secret_key | Yes | Secret access key |
region | No | AWS region |
FTPβ
| Parameter | Required | Description |
|---|---|---|
host | Yes | FTP server |
port | No | Port (default: 21) |
user | Yes | FTP username |
password | Yes | FTP password |
path | Yes | Remote path |
tls | No | Enable FTPS (true/false) |
Google Drive (gdrive)β
Authentication uses OAuth 2.0. When adding a storage with --type gdrive, an interactive flow opens in the browser to authorize access to your Google Drive. The token is stored locally in DVS secrets; no manual parameters are required.
dvs storage add mygdrive --type gdrive
Requires DVS to be run with the OAuth redirect URL configured (e.g. via dvsctl or equivalent). Only one admin instance should expose the OAuth callback for the flow to complete correctly.
Localβ
| Parameter | Required | Description |
|---|---|---|
path | Yes | Local directory path |