2023-06-07 06:57:07 +00:00
|
|
|
#!/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
|