def dump(device, destination, level=0, label=None, noerase=None):
    if not salt.utils.which("xfsdump"):
        raise CommandExecutionError("Utility \"xfsdump\" has to be installed or missing.")

    label = label and label or time.strftime("XFS dump for \"{0}\" of %Y.%m.%d, %H:%M".format(device),
                                             time.localtime()).replace("'", '"')
    cmd = ["xfsdump"]
    cmd.append("-F")                          # Force
    if not noerase:
        cmd.append("-E")                      # pre-erase
    cmd.append("-L '{0}'".format(label))      # Label
    cmd.append("-l {0}".format(level))        # Dump level
    cmd.append("-f {0}".format(destination))  # Media destination
    cmd.append(device)                        # Device

    cmd = ' '.join(cmd)
    out = __salt__['cmd.run_all'](cmd)
    _verify_run(out, cmd=cmd)

    return _xfsdump_output(out['stdout'])
Get the learning context of the user.
dataset/ETHPy150Open saltstack/salt/salt/modules/xfs.py/dump--crossover with--dataset/ETHPy150Open heiskr/sagefy/server/models/user.py/User.get_learning_context