Simple backup script in Erlang