I am trying to do an rsync or scp from machine1 to machine2. I am getting arg list to long. I am using centos 5 machine 1 and centos 4.5 on machine2. I am using the default shell which is bash. How can I get past this? THanks, Jerry
On 8/30/07, Jerry Geis <geisj at pagestation.com> wrote:> I am trying to do an rsync or scp from machine1 to machine2. > I am getting arg list to long. > > I am using centos 5 machine 1 and centos 4.5 on machine2. > > I am using the default shell which is bash. > > How can I get past this?Change your rsync command around a bit. (If you can show us the command you're using, we can make some suggestions) I would gather that you have a huge amount of files in the dir you're syncing. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
>On 8/30/07, Jerry Geis <geisj at pagestation.com <http://lists.centos.org/mailman/listinfo/centos>> wrote: >>/ I am trying to do an rsync or scp from machine1 to machine2./>>/ I am getting arg list to long. />>/ />>/ I am using centos 5 machine 1 and centos 4.5 on machine2. />>/ />>/ I am using the default shell which is bash. />>/ />>/ How can I get past this? />Change your rsync command around a bit.>(If you can show us the command you're using, we can make some suggestions)>I would gather that you have a huge amount of files in the dir you're syncing.I was trying to do "rsync -a root at machine2:/somedirectory ." There are multiple directories under the tree and yes many files. also tried "scp -r root at machine2:/somedirectory ." with the same result of too many files. Jerry
On 8/30/07, Jerry Geis <geisj at pagestation.com> wrote:> I am trying to do an rsync or scp from machine1 to machine2. > I am getting arg list to long. > > I am using centos 5 machine 1 and centos 4.5 on machine2. > > I am using the default shell which is bash. > > How can I get past this? > > Thanks, > JerryI would use find and xargs. That's usually how I get around it. You'll have to experiment though. Something like: find ./ -type f | xargs scp ..... That's not a fully functional command!