Adding archive flag

This commit is contained in:
shockrah 2024-09-26 23:49:57 -07:00
parent 0e0f32aa68
commit 5ff3f80e6f

View File

@ -8,7 +8,7 @@ if [[ "$INPUT_KEY" ]]; then
echo -e "${INPUT_KEY}" > key # Creates a file with the key content
chmod 400 key # Set the key as Read-Only
rsync -v --stats -e "ssh -p $INPUT_PORT -o StrictHostKeyChecking=no -i key" \
rsync -a -v --stats -e "ssh -p $INPUT_PORT -o StrictHostKeyChecking=no -i key" \
"$INPUT_ORIGIN" \
"$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
fi