Skip to content

Commit ec3f9b3

Browse files
authored
Merge pull request #484 from databacker/update-target-multi-env-var
fix documentation for multiple TARGET with env var
2 parents b5a7c79 + 256ec6f commit ec3f9b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/backup.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ The value of the environment variable or CLI target can be one of three formats,
127127
* S3: If it is a URL of the format `s3://bucketname.fqdn.com/path` then it will connect via using the S3 protocol.
128128
* SCP: If it is a URL of the format `scp://user@hostname:/path` then it will connect via SCP.
129129

130-
In addition, you can send to multiple targets by separating them with a whitespace for the environment variable,
130+
In addition, you can send to multiple targets by separating them with a comma for the environment variable,
131131
or native multiple options for other configuration options. For example, to send to a local directory and an SMB share:
132132

133-
* Environment variable: `DB_DUMP_TARGET="/db smb://hostname/share/path/"`
133+
* Environment variable: `DB_DUMP_TARGET="/db,smb://hostname/share/path/"`
134134
* CLI flag: `dump --target=/db --target=smb://hostname/share/path/"`
135135

136+
For more complex options, and in general, we recommend using a config file.
137+
136138
##### Local File
137139

138140
If the target starts with `/` or is a `file:///` then it is assumed to be a directory. The file will be written to that

0 commit comments

Comments
 (0)