replication-setup command
Sets up replication between two buckets (potentially from different accounts), creating and replacing keys if necessary.
Requires capabilities on both profiles:
listKeys
createKeys
readReplications
writeReplications
b2 replication-setup [-h] [--profile PROFILE]
[--destination-profile DESTINATION_PROFILE] [--name NAME]
[--priority PRIORITY] [--file-name-prefix PREFIX]
SOURCE_BUCKET_NAME DESTINATION_BUCKET_NAME
Positional Arguments
- SOURCE_BUCKET_NAME
- DESTINATION_BUCKET_NAME
Named Arguments
- --profile
- --destination-profile
- --name
name for the new replication rule on the source side
- --priority
priority for the new replication rule on the source side [1-2147483647]
Default: 128
- --file-name-prefix
only replicate files starting with PREFIX