Enum BackupType

java.lang.Object
java.lang.Enum<BackupType>
org.kendar.sync.lib.protocol.BackupType
All Implemented Interfaces:
Serializable, Comparable<BackupType>, java.lang.constant.Constable

public enum BackupType extends Enum<BackupType>
Defines the types of backup operations.
  • Enum Constant Details

    • NONE

      public static final BackupType NONE
      No backup/restore operation. This is the default type, indicating no action is taken.
    • PRESERVE

      public static final BackupType PRESERVE
      Backup/Restore without deleting old files. Files on the target that don't exist on the source are preserved.
    • MIRROR

      public static final BackupType MIRROR
      Backup/Restore deleting the files not present on the source. Files on the target that don't exist on the source are deleted.
    • DATE_SEPARATED

      public static final BackupType DATE_SEPARATED
      Backup/Restore without deleting old files with "date separated structure" on the backup. Files are organized in directories based on their modification date. During restore, the date structure is ignored and files are placed directly in the target directory.
    • TWO_WAY_SYNC

      public static final BackupType TWO_WAY_SYNC
      Two-way synchronization. Files are synchronized in both directions, ensuring both source and target have the latest versions.
  • Method Details

    • values

      public static BackupType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BackupType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null