scp or sftp copy multiple files with single command

Copy multiple files from remote to local: $ scp [email protected]:/some/remote/directory/\{a,b,c\} ./ Copy multiple files from local to remote: $ scp foo.txt bar.txt [email protected]:~ $ scp {foo,bar}.txt [email protected]:~ $ scp *.txt [email protected]:~ Copy multiple files from remote to remote: $ scp [email protected]:/some/remote/directory/foobar.txt \ [email protected]:/some/remote/directory/ Source: http://www.hypexr.org/linux_scp_help.php

How to perform checksums during a SFTP file transfer for data integrity?

With the SFTP, running over an encrypted SSH session, there’s negligible chance the file contents could get corrupted while transferring. The SSH itself does data integrity verification. So unless the contents gets corrupted, when reading the local file or writing the remote file, you can be pretty sure that the file was uploaded correctly, if … Read more