A
A
anriko2020-05-21 17:06:16
SSH
anriko, 2020-05-21 17:06:16

How to copy a file to all folders on a Linux server using ssh?

so something doesn't work scp -r ./optimaservis.ru/public_html/dorozhnaja-razmetka/index.php ./*/public_html/dorozhnaja-razmetka

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
galaxy, 2020-05-21
@galaxy

I see no reason at all to use scp here, all paths are local.
Neither cp nor scp can copy to several folders at once. Write a bash script or look at ready-made options .

K
krypt3r, 2020-05-22
@krypt3r

find with -exec option or find + xargs combination

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question