Add rake task to replicate current backlog and exit when empty

The require and the `t = Time.now` should be outside the begin.  The `t` in particular is used in the ensure block, so I feel it should be before the begin.