backup: more generic script