This may be too restrictive (see the last part of https://github.com/fdr/wal-e/commit/8672965ffc86ba8927c5aa57852456a12e8386ba#commitcomment-3639449)