LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   copy files from one source to multiple destination simultaneously (https://www.linuxquestions.org/questions/linux-software-2/copy-files-from-one-source-to-multiple-destination-simultaneously-824296/)

mdfakkeer 08-05-2010 03:08 AM

copy files from one source to multiple destination simultaneously
 
i want to copy one or more files or directory from one drive to multiple drive simultaneously. It like a cloning a disk. But i dont like clone entire disk. i want to copy/clone only certine files or folder. if any one can know how to copy one source to multiple destination simultaneously. Is any tools available? how i can implement in perl?

TB0ne 08-05-2010 10:31 AM

Quote:

Originally Posted by mdfakkeer (Post 4056476)
i want to copy one or more files or directory from one drive to multiple drive simultaneously. It like a cloning a disk. But i dont like clone entire disk. i want to copy/clone only certine files or folder. if any one can know how to copy one source to multiple destination simultaneously. Is any tools available? how i can implement in perl?

Yes, someone can know how to do this. You can either do it in bash, using "tee", or use File::Copy in Perl and write a program accordingly.

Since you only want certain files, but don't really give details about what you're doing, version/distro of Linux, etc., I'd just create the 'master' tar file, then script something to SCP it to the other machines, and untar it.

crts 08-05-2010 12:34 PM

duplicate post of:
http://www.linuxquestions.org/questi...eously-824349/

Matir 08-10-2010 03:25 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 03:25 PM.