Keep recent backups within a time window

Closes #678.

/cc @jeremy