1
I have a linux machine with folders named numerically. How can I securely copy ranges of these folders to another server? The source machine runs tcsh, the target bash. At the moment, from the directory containing the data I want to copy, I am using the following command:
scp -r [2042-2046] user@target:home/user/destination_folder
The source machine asks for my password for target and appears to copy files, but nothing arrives on the target machine. There are no errors. If however, I replace the range of folders with a single folder name, then the copying works fine:
scp -r 2042 user@target:home/user/destination_folder
however, this would mean repeating the scp command 5 times and putting my password in everytime, which seems very inefficient, especially for larger ranges.