I have to migrate a website where are 147.000 images files in a single folder. I try to compress with gzip / tar but exited without any error message, and the archive file is 0 byte long.

```
$ tar cvf - web/uploads/documents/*.* | split -b 1024m - documents.tgz.

```

> 
> bash: /usr/bin/tar: Argument list too long
> 
> 
> 

I think it's because of too many files I try to add at once. Now I'm looking for a solution to put files into seperated archive, each one with the starting letter of files (a.tar < abacus.jpeg, admire.png, amateur.gif, etc) 

What command I have to use to do that?

Thank you in advance