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
|
||||
|
||||
rsync -e "ssh -p $INPUT_PORT -o StrictHostKeyChecking=no -i key" \
|
||||
"$INPUT_ORIGIN" \
|
||||
-r "$INPUT_ORIGIN" \
|
||||
"$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
|
||||
# Runs the SCP command
|
||||
scp -i key $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
|
||||
fi
|
||||
time=$(date)
|
||||
echo "-----------------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user