From 5ff3f80e6f48fc5f85fd9b0f85602d3b61e05e28 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 26 Sep 2024 23:49:57 -0700 Subject: [PATCH] Adding archive flag --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6bd7338..0a6a836 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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