mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 16:45:28 +03:00
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:
parent
066d9d84ec
commit
f44e1b2070
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user