verify_content=" --checksum"
-while getopts "hc" OPTION
+while getopts "hcx" OPTION
do
case "$OPTION" in
h) usage; exit 0;;
rsync_opts="-niaH$verify_content --delete"
if rsync --version | grep -q xattrs; then
- rsync_opts="$rsync_opts -AX"
+ case $OSTYPE in
+ cygwin|darwin)
+ # bup doesn't support ACLs here yet.
+ rsync_opts="$rsync_opts -X"
+ ;;
+ *)
+ rsync_opts="$rsync_opts -AX"
+ ;;
+ esac
else
echo "Not comparing xattrs/acls (unsupported by available rsync)." 1>&2
fi