Using -p to copy file state i think
This commit is contained in:
parent
e66e493e2f
commit
9bbc8c959e
@ -7,7 +7,7 @@ if [[ "$INPUT_KEY" ]]; then
|
|||||||
chmod 400 key # Set the key as Read-Only
|
chmod 400 key # Set the key as Read-Only
|
||||||
echo "Trying SCP process with SSH key"
|
echo "Trying SCP process with SSH key"
|
||||||
# Runs the SCP command
|
# Runs the SCP command
|
||||||
scp -r -P $INPUT_PORT -o StrictHostKeyChecking=no -i key $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
|
scp -rp -P $INPUT_PORT -o StrictHostKeyChecking=no -i key $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
|
||||||
else
|
else
|
||||||
# If the keyis empty, it uses the password for the SCP
|
# If the keyis empty, it uses the password for the SCP
|
||||||
echo "Trying SCP process with password"
|
echo "Trying SCP process with password"
|
||||||
|
Loading…
Reference in New Issue
Block a user