Fileset Examples

In the example below, all guest VMs will be backed up.

Fileset {
  Name = FS_XenAll
  Include {
    Plugin = "xenserver: url=http://10.10.10.10/ user=root password=root"
  }
}

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

Fileset {
  Name = FS_Xen_VM1
  Include {
    Plugin = "xenserver: url=http://10.10.10.10/ user=root password=root vm=VM1"
  }
}

The same example as above, but using uuid instead:

Fileset {
  Name = FS_Xen_VM1
  Include {
    Plugin = "xenserver: url=(...) uuid=fe1ccf3b-1865-3942-c928-d98138397ff1"
  }
}

where: url=(...) is a short for: url=http://10.10.10.10/ user=root password=root above and below.

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

Fileset {
  Name = FS_Xen_ProdAll
  Include {
    Plugin = "xenserver: url=(...) include=Prod"
  }
}

In the example below, all guest VMs except VMs whose name-label begins with “Test” will be backed up.

Fileset {
  Name = FS_Xen_AllbutTest
  Include {
    Plugin = "xenserver: url=(...) include=.* exclude=^Test"
 }
}

In the example below, we connect through NBD-SSL mode to backup a XenExampleVM host:

Fileset {
   Name = "Xen-Example-Secure-VM"
   EnableVss = no
   IgnoreFilesetChanges = no
   Include {
      Options {
         Signature = Sha256
      }
      Plugin = "xenserver: server=\"my-xcp-server.example.org\" user=\"root\" password=\"SamplePass\" abort_on_error include=XenExampleVM certfile=\"/root/certs/MyCertificate.crt\""
   }
}

Go back to: Xen Plugin: Configuration.