1 2 3 4 5 6 7
#!/bin/sh n=2 while [ -d /boot$n ]; do rsync -ra --delete /boot/ /boot$n/ n=$((n+1)) done