19 lines
259 B
Plaintext
19 lines
259 B
Plaintext
|
#!/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
|