On 11/2/20 4:57 PM, Francis.Montagnac@inria.fr wrote:
Hi.
On Mon, 02 Nov 2020 15:44:39 +0100 Jakub Jelen wrote:
Is this something you would like to see in Fedora soon?
No. I prefer a lot to use rsync, because scp:
- has no dry-run mode
- is not incremental
- follows symlinks when used with the -r option
- has too few options: no --chown --chgrp
Then you are indeed not the target group.
Do you have something against this?
No: users should be free to continue using it (but not with the -r option IMO).
The vulnerability of the -r was not the only issue found in scp over last years. And recursive copying of files is handy so I do not think it is a good idea to axe just one commandline switch.
Is your use case missing?
With scp no, but I use sshfs for years. This is IMO something to promote.
Ex: Example: a simple 3-way copy, assuming you have root SSH access (with keys)
mkdir /mnt/hostA sshfs -o transform_symlinks root@hostA:/ /mnt/hostA rsync -a --delete /mnt/hostA/etc/skel/ root@hostB:/etc/skel
sshfs is using sftp internally so you are already using the sftp. Congratulations.
Regards,