Backup Views
Backup named or all views of a project in the local file system. If the backup directory does not exist, it will be created. The views are stored as JSON files. Permissions that may have been setup are not backed up.
opal backup-view <CREDENTIALS> [OPTIONS] [XTRAS]
Options
Option |
Description |
---|---|
|
Source project name |
|
List of view names to be backed up (default is all) |
|
Output directory name (default is current directory) |
|
Skip confirmation when overwriting the backup file. |
Credentials
Authentication can be done by username/password credentials OR by personal access token OR by certificate/private key pair (two-way SSL authentication).
Option |
Description |
---|---|
|
Opal server base url |
|
Credentials auth: user name (requires a password) |
|
Credentials auth: user password (requires a user name) |
|
Token auth: user’s personal access token |
|
Two-way SSL auth: certificate/public key file (requires a private key) |
|
Two-way SSL auth: private key file (requires a certificate) |
Extras
Option |
Description |
---|---|
|
Show the command help’s message. |
|
Verbose output. |
Example
Backup a specific view from a project into file CNSIM.json
:
opal backup-view --opal https://opal-demo.obiba.org --user administrator --password password --project datashield --views CNSIM