19 lines
259 B
Bash
Executable File
19 lines
259 B
Bash
Executable File
#!/bin/bash
|
|
|
|
USAGE="Usage: $0 target file1 file2 file3 ..."
|
|
|
|
if [ "$#" == "0" ]; then
|
|
echo "$USAGE"
|
|
echo
|
|
exit 1
|
|
fi
|
|
|
|
TARGET=$1
|
|
shift
|
|
|
|
while (( "$#" )); do
|
|
echo "Copying '$1' to '$TARGET'."
|
|
rsync --inplace --recursive --progress "$1" "$TARGET"
|
|
shift
|
|
done
|