I'm receiving a "504 Gateway Time-out" Error every time

I'm receiving a "504 Gateway Time-out" Error every time I try to Snapshot an upload folder with large amount of audio files. The files are not really large, but there are several of them. I've already excluded some folders, but excluding anything other than the year folders makes life pretty difficult. Any other solutions to this issue out there?