Skip to content

Commit f44e1b2

Browse files
committed
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.
1 parent 066d9d8 commit f44e1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ if [[ -n ${extra_files:-} ]]; then
244244
if [[ -d $extra_files ]]; then
245245
extra_files="$extra_files/"
246246
fi
247-
rsync -vrlF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
247+
rsync -rlpv -FF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
248248
fi
249249

250250
ssh_ <<SSH

0 commit comments

Comments
 (0)