Add rake task to replicate current backlog and exit when empty

Prefer `Rails.root` over hardcoding the `path`.