Added backup_repo function