What shell are you using? If it's bash or ksh put the list of files in an array, e.g.:
Or use the list directly on the command line:
In these situations you run the risk of exhausting the maximum length of arguments to a process. I ran into this problem today when I needed to randomly divide two massive sets of files evenly between two servers. Create a new directory for each server and fill it with symlinks to the files you wish to copy to that server. If it's a lot of files, automate it by creating a script:
Execute the script inside of your new directory. Then, just copy that directory over to the target server, and scp will follow the symlinks.
Is there a simple way to copy data from one server to a different server?
Seems that if 2 servers are on the same network, there should be a simple way to copy between the two.
Not just one file. I need to copy a whole directory with subdirectories from one server to a different one.
I... (9 Replies)
I have a text list of about 3,000 file names (image files), which exist on a server and that I want to copy over to another location. I understand the Unix cp code, but what's the string to have it copy multiple files based on an external list?
Many thanks! (4 Replies)
Hello All,
I would like to download a list of files from a remote server to my local machine preserving the path i.e, create a similar directory tree.
ex:
files on the remote machine with path
/remoteserver/005_S_0221/mpr/m1/I72128/dat/06A515T.dat... (3 Replies)
Hi to all here ,
Excuse me for the lamer question but I need UNIX command for copying List of Files Under Different File Names !
for example I have this list:
new_001.jpg
new_002.jpg
new_003.jpg
.....
I want to copy all files that start with "new_" to the same directory but under... (7 Replies)
I need to copy huge set of data(files & floder) from one server to other.
Can any one guide me.I have tried throught ftp mget but it is vain...floder are not moving......
Do suggest me any good method (12 Replies)
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
I am trying to copy code to remote server, doing something like this
However it is copying one file and than the script exits
i=0; j=0
while read fn; do
dir=${fn%/*} # Gets directory path
fnm=${fn##*/} # Gets filename excl. path
rgx_nwk="s/${nwk}/${nwk}.sac/g"
... (2 Replies)
Hello All,
I want to copy all files from the list below to a path /qa0/repo/AS/CPY
(lnx17:qa0:/qa0/repo/AS>) ls -lrt | grep 'Feb 14'
-rw-rw-r-- 1 Ks1 qa0 39 Feb 14 20:11 HHH.dat
-rw-rw-r-- 1 Ks1 qa0 32 Feb 14 20:11 HHH1.dat
-rw-rw-r-- 1 Ks1 qa0 29 Feb 14 20:11... (3 Replies)