16 January 2011

rsync - /usr/bin/rsync: Argument list too long

After reaching the 33,000+ number of files in the same directory, it seems that the rsync process failed to work. Even the basic LS returns the same error: Argument list too long. The command that i've used was:
rsync -avz path_to_source/dir/* user@host:/path_to_destination/dir/
This is not working for lots of files under the same directory. The fix is:
rsync -avz path_to_source/dir user@host:/path_to_destination/

No comments:

Post a Comment