old data backup system in erlang