Better rsync command with recusive flag
This commit is contained in:
parent
a10783e281
commit
fc86983308
@ -7,10 +7,8 @@ if [[ "$INPUT_KEY" ]]; then
|
|||||||
chmod 400 key # Set the key as Read-Only
|
chmod 400 key # Set the key as Read-Only
|
||||||
|
|
||||||
rsync -e "ssh -p $INPUT_PORT -o StrictHostKeyChecking=no -i key" \
|
rsync -e "ssh -p $INPUT_PORT -o StrictHostKeyChecking=no -i key" \
|
||||||
"$INPUT_ORIGIN" \
|
-r "$INPUT_ORIGIN" \
|
||||||
"$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
|
"$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
|
||||||
# Runs the SCP command
|
|
||||||
scp -i key $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
|
|
||||||
fi
|
fi
|
||||||
time=$(date)
|
time=$(date)
|
||||||
echo "-----------------------------"
|
echo "-----------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user