nix-files/pkgs/additional/sane-scripts/src/sane-rcp

12 lines
300 B
Plaintext
Raw Normal View History

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p rsync
2022-12-14 10:07:02 +00:00
# rsync, with sane defaults
# + verbosity
# + default to cwd as destination if none is provided
dest=
if (( $# <= 1 )); then
# rsync to the current directory by default
dest='.'
fi
rsync -arv --progress --append-verify "$@" $dest