Wrap backup behavior in rake task to ensure environment is set