Problem Description
Following error is observed when running asbackup with -X option to specify partition list:
2023-12-14 09:09:30 GMT [ERR] [ 749] Range overlap in partition list '0-100, 101-200, 201-300, 301-400, 401-500, 501-600'
2023-12-14 09:09:30 GMT [ERR] [ 749] Error while parsing partition-list '0-100, 101-200, 201-300, 301-400, 401-500, 501-600'
The command used:
#asbackup --remove-files --host=<hostname> --namespace=<namespace> --d=<directory> --compact --compress=zstd --compression-level=5 --parallel=1 -X '0-100, 101-200, 201-300, 301-400, 401-500, 501-600' --sleep-between-retries=1000
Explanation
-X, --partition-list option backs up list of partition filters. Partition filters can be ranges, individual partitions, or records after a specific digest within a single partition. In the above command (-X '0-100, 101-200, 201-300,...), the second range has already completed backup from 101st partition to next 200 partitions i.e., till 300th partition. Again, it says to backup from 201st partition and which is causing the error.
Solution
We should give the range as shown in the example:
-X 361
Back up only partition 361
-X 361,529,841
Back up partitions 361, 529, and 841
-X 361-481
Back up 481 partitions, starting at 361 (that is, partitions 361 through 841)
Notes
Partition scanning backup options
Applies To Earliest Version
Pre 4.9
Applies To Latest Version
Current Version