Changes

Jump to: navigation, search

stoney conductor: VM Backup

167 bytes added, 13:21, 30 January 2014
/* How to exclude a machine from the backup */
If you want to exclude a machine from the backup run you simply need to add the following entry to your LDAP directory:
<source lang="bash">
machinenamemachineuuid="<UUID OF THE MACHINE-NAME>" # e.g.: b9d13dbc-9ab7-4948-9daa-a5709de83dc2
cat << EOF | ldapadd -D cn=Manager,o=stepping-stone,c=ch -H ldaps://ldapm.stepping-stone.ch/ -W -x
dn: ou=backup,sstVirtualMachine=${machinenamemachineuuid},ou=virtual machines,ou=virtualization,ou=services,o=stepping-stone,c=ch
objectclass: top
objectclass: organizationalUnit
If the backup subtree in the LDAP directory already exists, you need to add the sstbackupexcludefrombackup attribute:
<source lang="bash">
machinenamemachineuuid="<UUID OF THE MACHINE-NAME>" # e.g.: b9d13dbc-9ab7-4948-9daa-a5709de83dc2
cat << EOF | ldapadd -D cn=Manager,o=stepping-stone,c=ch -H ldaps://ldapm.stepping-stone.ch/ -W -x
dn: ou=backup,sstVirtualMachine=${machinenamemachineuuid},ou=virtual machines,ou=virtualization,ou=services,o=stepping-stone,c=ch
changetype: add
objectclass: top
objectclass: organizationalUnit
objectclass: sstVirtualizationBackupObjectClass
sstbackupexcludefrombackup: TRUE
16
edits