Forum Discussion

C0R3's avatar
C0R3
Level 2
8 years ago

BEMCLI - Get Jobs with "DeleteSelectedFilesAfterSuccessfulBackup"

Hi,

Im trying with BEMCLI over Powershell to get all Jobs where "DeleteSelectedFilesAfterSuccessfulBackup" is set.
It easy to set witth Set-BEFullBackupTask, but which Get command I have to use?

Thanks and best regards,
Kurt

2 Replies

    • C0R3's avatar
      C0R3
      Level 2

      "Get-BEJob" returns "IsBackupDefinitionJob : True" and I use the "BackupDefinitionID" with "Get-BEBackupDefinition -ID" but in the return there is no "DeleteSelectedFilesAfterSuccessfulBackup" or any other attribute which defines that the data will be deleted after the backup?

      Get-BEBackupDefinition returns me the following attributes:

      Spoiler
      EditMode
      SelectionList
      AgentServer
      AgentServerId
      InitialFullBackup
      AdditionalBackups
      Verifies
      DuplicateStages
      SimplifiedDisasterRecoveryEnabled
      SelectionSummary
      SimultaneousConvertToVirtualStage
      ConvertBackupToVirtualStages
      Priority
      RestrictToBackupExecServer
      RestrictToBackupExecServersInPool
      EnableTestRun
      TestRunSchedule
      TestRunCheckLogonAccount
      TestRunCheckStorageSpace
      TestRunCheckMediaAvailable
      TestRunJobSizeCalculationMethod
      TestRunPlaceScheduledBackupJobOnHoldIfUnsuccessful
      NetworkInterface
      NetworkProtocol
      NetworkSubnet
      AllowAnyNetworkForAgentAccess
      EnableCheckpointRestart
      UseSnapshotTechnology
      SnapshotTechnology
      SnapshotProvider
      ProcessLogicalVolumesSequentially
      UseOffhostBackup
      OffhostBackupSnapshotProvider
      FailIfNoOffhostBackup
      ProcessOffhostLogicalVolumesSequentially
      DelayedCatalogScheduleType
      DelayedCatalogStartAt
      DelayedCatalogDaysOfWeek
      FileSystemBackupMethod
      FileSystemEnableNtfsSingleInstanceBackup
      FileSystemFollowJunctionPoint
      FileSystemFollowSymbolicLink
      FileSystemBackupRemoteStorage
      FileSystemBackupOpenFile
      FileSystemBackupOpenFileIfClosedWithinSeconds
      ExchangePreConsistencyCheck
      ExchangeContinueIfConsistencyCheckIsUnsuccessful
      ExchangeHighAvailability
      ExchangePreferredServerGroup
      SharePointReleaseLockOnFarmTopology
      SharePointPreConsistencyCheck
      SharePointContinueIfConsistencyCheckIsUnsuccessful
      LinuxMacPreserveChangeTime
      LinuxMacFollowLocalMountPoint
      LinuxMacFollowRemoteMountPoint
      LinuxMacLockRemoteFile
      ActiveDirectoryPreConsistencyCheck
      ActiveDirectoryContinueIfConsistencyCheckIsUnsuccessful
      ActiveDirectoryUseGrt
      OracleMaximumNumberOfDevicesToUseForResources
      OracleMinimumNumberOfDevicesRequiredForJob
      VirtualMachineBackupPoweredOffVirtualMachine
      VirtualMachineUseGrtForFileSystem
      VirtualMachineUseGrtForActiveDirectory
      VirtualMachineUseGrtForExchange
      VirtualMachineUseGrtForSql
      VirtualMachineUseGrtForSharePoint
      HyperVExcludeVirtualMachinesNeedingSavedState
      VMwareTransportModePriority
      VMwareVSpherePort
      NdmpEMCBackupType
      NdmpEMCBackupWithIntegratedCheckpoints
      NdmpEMCEnableFileHistory
      NdmpNetAppBackupAccessControlLists
      NdmpNetAppEnableFileHistory
      Name
      Id
      NextJob
      NextJobId
      Description

       What I'm missing?