Skip to content

Commit cff636f

Browse files
committed
Update replication rules example page to new cli
1 parent 4ee7c73 commit cff636f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

docs/started/concepts/replication_rules_examples.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,22 @@ The [__RSE Expression__](rse_expressions.md) gets resolved into a set of RSEs,
1414
which are possible destination RSEs for the number of replicas the user wants to
1515
create.
1616

17-
Is possible to find detailed information and examples about how to write RSE
18-
Expressions [__here__](rse_expressions.md).
19-
2017
## Examples
2118

2219
### I want to have 2 replicas of first_dataset and second_dataset on Tier 1 RSEs
2320

24-
The number 2 *second_dataset* is the number of copies expected. At the end, the
25-
RSE Expression select all the Tier 1 RSEs as possible targets to store the
26-
replicas.:
27-
2821
```bash
29-
username@host:~$ rucio add-rule scope:first_dataset scope:second_dataset 2 'tier=1'
22+
username@host:~$ rucio rule add --copies 2 --rses 'tier=1' scope:first_dataset scope:second_dataset
3023
```
3124

32-
To see all the possible targets, **rucio list-rses** command can be used:
25+
To see all possible targets, the command `rucio rse list` can be uses with the same RSE expression:
3326

3427
```bash
35-
username@host:~$ rucio list-rses --rses 'tier=1'
28+
username@host:~$ rucio rse list --rses 'tier=1'
3629
```
3730

3831
### I want to have 2 replicas on whatever T2 RSEs in the UK but not in Glasgow
3932

4033
```bash
41-
username@host:~$ rucio add-rule scope:first_dataset scope:second_dataset 2 'tier=2&country=uk\site=GLASGOW'
34+
username@host:~$ rucio rule add --copies 2 --rses 'tier=2&country=uk\site=GLASGOW' scope:first_dataset scope:second_dataset
4235
```

0 commit comments

Comments
 (0)