argument list too long error
Hi all,
I am getting this error when i run a bash script. Code:
/home/user/testscript.sh: line 32: /usr/bin/rsync: Argument list too long Code:
rsync -rltcv /dir1/dir2/dir3/dir4/dir5/* /target1/target2/ >> $LOG |
It would usually mean there are too many dirs/files in the generated list for rsync to handle.
Try adding Code:
set -xv You may need to break it down into multiple smaller file lists. |
Code:
rsync -rltcv /dir1/dir2/dir3/dir4/dir5/* /target1/target2/ >> $LOG Code:
rsync -rltcv /dir1/dir2/dir3/dir4/dir5/ /target1/target2/ >> $LOG |
Thanks for the replies.
removing '*' at the end of source dir, worked. |
All times are GMT -5. The time now is 11:00 PM. |