consolidate and expand ensure_packages on backup server