backup to a temp directory