mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-13 11:34:54 +00:00
Full backup for all data movers (#10185)
* support full backup for fs data mover Signed-off-by: Lyndon-Li <lyonghui@vmware.com> * full backup for PVB Signed-off-by: Lyndon-Li <lyonghui@vmware.com> * full backup for all data movers Signed-off-by: Lyndon-Li <lyonghui@vmware.com> * fix UT error Signed-off-by: Lyndon-Li <lyonghui@vmware.com> --------- Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -17,6 +17,6 @@ limitations under the License.
|
||||
package shared
|
||||
|
||||
const (
|
||||
DataUploadParentSnapshotNone = "none"
|
||||
DataUploadParentSnapshotAuto = "auto"
|
||||
ParentSnapshotNone = "none"
|
||||
ParentSnapshotAuto = "auto"
|
||||
)
|
||||
|
||||
@@ -61,6 +61,12 @@ type PodVolumeBackupSpec struct {
|
||||
// Cancel indicates request to cancel the ongoing PodVolumeBackup. It can be set
|
||||
// when the PodVolumeBackup is in InProgress phase
|
||||
Cancel bool `json:"cancel,omitempty"`
|
||||
|
||||
// ParentSnapshot specifies the parent snapshot that current backup is based on.
|
||||
// If its value is "" or "auto", the data mover finds the recent backup of the same volume as parent.
|
||||
// If its value is "none", the data mover will do a full backup
|
||||
// If its value is a specific snapshotID, the data mover finds the specific snapshot as parent.
|
||||
ParentSnapshot string `json:"parentSnapshot,omitempty"`
|
||||
}
|
||||
|
||||
// PodVolumeBackupPhase represents the lifecycle phase of a PodVolumeBackup.
|
||||
|
||||
Reference in New Issue
Block a user