Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using rsync to do some backups to an external harddrive which is formated has FAT32 so I need to ignore files bigger than 4GB, I know I can use --max-size=4GB (actually I don't know if the 4GB part is correct) but I would like to keep a log of the ignored files.

share|improve this question
up vote 1 down vote accepted

i don't think rsync can explicitly log ignored files, but I might be wrong. you could always run:

find /src/dir -type f -size +4G > /path/to/over4gb.log

then you could take that log file and pass it to rsync via --exclude-from

rsync -av --exclude-from=/path/to/over4g.log /src/dir/ /dest/dir/

just to be safe for your fat32 partition you might cut the size down to 3.8gb.. put it in a script or run it all at once:

find /src/dir -type f -size +3896M > /path/to/over3.8g.log && rsync -av --exclude-from=/path/to/over3.8g.log /src/dir/ /dest/dir/
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.