Export (0) Print
Expand All

FH_RETENTION_TYPES enumeration

Specifies under what conditions previous versions of files and folders can be deleted from a backup target.

Syntax


typedef enum _FH_RETENTION_TYPES { 
  FH_RETENTION_DISABLED   = 0,
  FH_RETENTION_UNLIMITED  = 1,
  FH_RETENTION_AGE_BASED  = 2,
  MAX_RETENTION_TYPE      = 3
} FH_RETENTION_TYPES;

Constants

FH_RETENTION_DISABLED

Previous versions are never deleted from the backup target.

FH_RETENTION_UNLIMITED

The operating system can delete any previous version on an as-needed basis, unless it is the most recent version of a file that currently exists and is within the protection scope.

FH_RETENTION_AGE_BASED

The operating system can delete any previous version older than the specified minimum age on as-needed basis, unless it is the most recent version of a file that currently exists and is within the protection scope. The minimum age is specified by the FH_RETENTION_AGE local policy.

MAX_RETENTION_TYPE

The maximum enumeration value for this enumeration. This value and all values greater than it are reserved for system use.

Remarks

The operating system deletes previous versions from a backup target only when the target is full or when the user has initiated data retention manually by using the File History item in Control Panel.

If FH_RETENTION_AGE_BASED is specified and the target is large enough, it is possible for the target to contain versions that are much older than the minimum age that is specified by the FH_RETENTION_AGE local policy.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Fhcfg.h

IDL

Fhcfg.idl

See also

IFhConfigMgr::GetLocalPolicy
IFhConfigMgr::SetLocalPolicy

 

 

Community Additions

ADD
Show:
© 2014 Microsoft