client/lxd_containers.go
func (r *ProtocolLXD) CreateContainerBackup(containerName string, backup api.ContainerBackupsPost) (Operation, error) {
	if !r.HasExtension("container_backup") {
		return nil, fmt.Errorf("The server is missing the required \"container_backup\" API extension")
	}

	// Send the request
	op, _, err := r.queryOperation("POST", fmt.Sprintf("/containers/%s/backups",
		url.QueryEscape(containerName)), backup, "")
	if err != nil {
		return nil, err
	}

	return op, nil
}
func (r *ProtocolLXD) CreateContainerBackup(containerName string, backup api.ContainerBackupsPost) (Operation, error) {
	if !r.HasExtension("container_backup") {
		return nil, fmt.Errorf("The server is missing the required \"container_backup\" API extension")
	}

	// Send the request
	op, _, err := r.queryOperation("POST", fmt.Sprintf("/containers/%s/backups",
		url.QueryEscape(containerName)), backup, "")
	if err != nil {
		return nil, err
	}

	return op, nil
}
func ( r * ProtocolLXD ) CreateContainerBackup ( containerName string , backup api . ContainerBackupsPost ) ( Operation , error ) { if ! r . HasExtension ( " " ) { return nil , fmt . Errorf ( " \" \" " ) } // Send the request op , _ , err := r . queryOperation ( " " , fmt . Sprintf ( " " , url . QueryEscape ( containerName ) ) , backup , " " ) if err != nil { return nil , err } return op , nil }
// CreateContainerBackup requests that LXD creates a new backup for the container
CreateContainerBackup requests that LXD creates a new backup for the container