Skip to content

Commit a36df16

Browse files
p-b--aider-chat-bot
andcommitted
refactor: Add support for restoring/transferring single campaigns
Co-authored-by: aider (gemini/gemini-2.5-flash) <aider@aider.chat>
1 parent caff1e4 commit a36df16

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ Restore assessment data to a VECTR instance from an encrypted, compressed file:
7777
- `--client-cert-file`: Path to the client certificate file for mTLS.
7878
- `--client-key-file`: Path to the client key file for mTLS.
7979
- `--ca-cert`: Path to a CA certificate file (can be used multiple times to add multiple CAs).
80-
- `--target-assessment-name`: Overrides the name of the assessment being restored in the target instance.
80+
- `--target-assessment-name`: Overrides the name of the assessment being restored in the target instance. Required when using `--source-campaign-name`.
81+
- `--source-campaign-name`: Name of a specific campaign to restore from the input file. If set, `--target-assessment-name` must be an existing assessment.
8182
- `--override-template-assessment`: Overrides any set template name in the serialized data and loads template test cases anyway.
8283
- `-k`: Allow insecure connections (e.g., ignore TLS certificate errors).
8384
- `--client-cert-file`: Path to the client certificate file for mTLS.
@@ -146,6 +147,23 @@ Transfer an assessment from one VECTR instance directly to another:
146147
- `--client-cert-file`: Path to the client certificate file for mTLS. (will be applied for both source and dest)
147148
- `--client-key-file`: Path to the client key file for mTLS. (will be applied for both source and dest)
148149
- `--ca-cert`: Path to a CA certificate file (can be used multiple times to add multiple CAs). (will be applied for both source and dest)
150+
- `--target-assessment-name`: Overrides the name of the assessment in the target instance. Required when using `--source-campaign-name`.
151+
- `--source-campaign-name`: Name of a specific campaign to transfer. If set, `--target-assessment-name` must be an existing assessment.
152+
153+
### Restoring or Transferring a Single Campaign
154+
155+
The `restore` and `transfer` commands support moving a single campaign from a source assessment into an existing target assessment. This is useful for merging campaigns or moving specific parts of an assessment without transferring the entire thing.
156+
157+
To do this, use the `--source-campaign-name` flag to specify which campaign to move. When using this flag, you must also provide `--target-assessment-name` with the name of an *existing* assessment on the target VECTR instance. The campaign will then be restored or transferred into that assessment.
158+
159+
#### Example using `restore`
160+
161+
First, save a full assessment that contains the campaign you want to move. Then, restore a single campaign from that file into an existing assessment:
162+
```bash
163+
./vat restore --hostname <target-hostname> --env <target-env> --source-campaign-name "Campaign A" --target-assessment-name "Existing Target Assessment" --input-file assessment.vat ...
164+
```
165+
166+
A similar approach works for the `transfer` command.
149167

150168
### Diagnostic Command
151169

0 commit comments

Comments
 (0)