```-a``` and ```-r``` are not equivalent.

From man:
```
       -a, --archive
              same as -dR --preserve=all
```

So, to use flags that also work on AIX, you could replace ```-a``` with ```-dpPr```