Fileset Examples

In the example below, a single guest VM with a name of “VM1” will be backed up.

FileSet {
    Name= Nutanix_single
    Include {
        Plugin="nutanix-ahv: user=root host=1.2.3.4 proxy_vm=proxyVM vm=VM1"
    }
}

In the example below, all guest VMs which have prod in their name will be backed up.

FileSet {
    Name= Nutanix_prod
    Include {
        Plugin="nutanix-ahv: user=root host=1.2.3.4 proxy_vm=proxyVM include=(.*)prod(.*)"
    }
}

In the example below, all guest VMs which have prod in their name but do not start with test will be backed up.

FileSet {
    Name= Nutanix_no_test
    Include {
        Plugin="nutanix-ahv: user=root host=1.2.3.4 proxy_vm=proxyVM include=(.*)prod(.*) exclude=^test(.*)"
    }
}

In the example below, all prod VMs will be backed up. All test VMs will be ignored except for a VM named exception.test

FileSet {
    Name= Nutanix_prod_no_test_except
    Include {
        Plugin="nutanix-ahv: user=root host=1.2.3.4 proxy_vm=proxyVM include=(.*)prod(.*) exclude=(.*)test(.*) vm=exception.test"
    }
}

In the example below, at restore time the selected guest VM will have its network interfaces disconnected and the network interface linked to net1 will request the 10.0.110.11 ip address.

FileSet {
    Name= Nutanix_disconnect
    Include {
        Plugin="nutanix-ahv: user=root host=1.2.3.4 proxy_vm=proxyVM disconnect_network network_address=net1:10.0.110.11"
    }
}

Note

There are different ways to use disconnect_network and abort_on_error: <parameter>=1 is strictly equal to the presence of <parameter> inside the plugin line. In the same spirit the absence of such parameter in the plugin line is equivalent to <parameter>=0.

In the example below, at restore time the selected guest VM will have its network interface connected to net1 request the ip 10.0.110.11 and the network interface net2 request the address 127.0.0.11. Note that the disconnect_network network_address must be present in the FileSet resource at the backup time to benefit from it at restore time.

FileSet {
    Name= Nutanix_net
    Include {
        Plugin="nutanix-ahv: user=root host=1.2.3.4 proxy_vm=proxyVM network_address=net1:10.0.110.11,net2:127.0.0.11"
    }
}

Go back to the main Nutanix-AHV Configuration page.

Go back to the main Nutanix-AHV page.