diff --git a/docs/started/concepts/replication_rules_examples.md b/docs/started/concepts/replication_rules_examples.md index a4bc2fab14c..d8457e92358 100644 --- a/docs/started/concepts/replication_rules_examples.md +++ b/docs/started/concepts/replication_rules_examples.md @@ -14,29 +14,22 @@ The [__RSE Expression__](rse_expressions.md) gets resolved into a set of RSEs, which are possible destination RSEs for the number of replicas the user wants to create. -Is possible to find detailed information and examples about how to write RSE -Expressions [__here__](rse_expressions.md). - ## Examples ### I want to have 2 replicas of first_dataset and second_dataset on Tier 1 RSEs -The number 2 *second_dataset* is the number of copies expected. At the end, the -RSE Expression select all the Tier 1 RSEs as possible targets to store the -replicas.: - ```bash -username@host:~$ rucio add-rule scope:first_dataset scope:second_dataset 2 'tier=1' +username@host:~$ rucio rule add --copies 2 --rses 'tier=1' scope:first_dataset scope:second_dataset ``` -To see all the possible targets, **rucio list-rses** command can be used: +To see all possible targets, the command `rucio rse list` can be uses with the same RSE expression: ```bash -username@host:~$ rucio list-rses --rses 'tier=1' +username@host:~$ rucio rse list --rses 'tier=1' ``` ### I want to have 2 replicas on whatever T2 RSEs in the UK but not in Glasgow ```bash -username@host:~$ rucio add-rule scope:first_dataset scope:second_dataset 2 'tier=2&country=uk\site=GLASGOW' +username@host:~$ rucio rule add --copies 2 --rses 'tier=2&country=uk\site=GLASGOW' scope:first_dataset scope:second_dataset ```