12 lines
300 B
Plaintext
Executable File
12 lines
300 B
Plaintext
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p rsync
|
|
# 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
|