Rails engine with database backup/restore functionality. Also rake tasks for cron-driven db backup.