def TrySnapshot(self):
    return (not self.op.remove_instance and
            self.instance.admin_state == constants.ADMINST_UP)
Returns true if there is a reason to prefer a snapshot.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/backup.py/LUBackupExport.TrySnapshot