Tuesday, May 30, 2023

scp or sftp copy multiple files with single command

Copy multiple files from remote to local:

$ scp your_username@remote.edu:/some/remote/directory/\\{a,b,c\\} ./ 

Copy multiple files from local to remote:

$ scp foo.txt bar.txt your_username@remotehost.edu:~ $ scp {foo,bar}.txt your_username@remotehost.edu:~ $ scp *.txt your_username@remotehost.edu:~ 

Copy multiple files from remote to remote:

$ scp your_username@remote1.edu:/some/remote/directory/foobar.txt \\ your_username@remote2.edu:/some/remote/directory/ 

Copy from local to remote example :

scp -r /home{user1,user2,user3,user4,user5} root@111.xxx.xxx.x:/home
(Visited 186 times, 1 visits today)
Baca Juga :  How to Install webuzo ?

Similar Posts