extra-files: use rsync -p, -FF

After removing -a in #15, remote extra files are implictly chowned
according to the remote umask. So we (re-)add --perms to apply local
file permissions remotely as this should mostly be expected behavior.

The second -F disables uploading the .rsync-filter file itself if it exists.
This commit is contained in:
phaer 2023-01-15 01:43:31 +01:00
parent 066d9d84ec
commit f44e1b2070

View File

@ -244,7 +244,7 @@ if [[ -n ${extra_files:-} ]]; then
if [[ -d $extra_files ]]; then
extra_files="$extra_files/"
fi
rsync -vrlF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
rsync -rlpv -FF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
fi
ssh_ <<SSH