#!/bin/sh
#
# srsync - rsync shortcut with options "everybody" needs
#
# note: be careful when restoring /boot with --sparse, GRUB doesn't support sparse
# files (e.g. the kernel). therefore don't use --sparse in this case.
#
# ---
# source: https://ruderich.org/simon/gitweb

set -eu
set -o xtrace

exec rsync \
  --verbose \
  --itemize-changes \
  --human-readable \
  --archive \
  --acls \
  --xattrs \
  --hard-links \
  --sparse \
  --numeric-ids \
  --one-file-system \
  "$@"
