Interface BackupConsts


  • public interface BackupConsts
    Constants for backup and restore.
    • Field Detail

      • VERSION_FILE_NAME

        static final String VERSION_FILE_NAME
        Version file name and path inside an archive. The file type is a "property" file, that should contain a "version.nr" property with integer value of the DB version.
        See Also:
        Constant Field Values
      • ZIPPED_TABLES_FOLDER_NAME

        static final String ZIPPED_TABLES_FOLDER_NAME
        Name of the folder inside zip file where exported tables will be placed.
        See Also:
        Constant Field Values
      • TC_VERSIONS_FILE_NAME

        static final String TC_VERSIONS_FILE_NAME
        Name of a file in the root of archive that will contain human readable version information.
        See Also:
        Constant Field Values
      • CHARSET_NAME_SAVING_FILE_NAME

        static final String CHARSET_NAME_SAVING_FILE_NAME
        Name of file inside zip with used charset.

        Backup processor allows a user to specify in which charset he/she want to perform backup. The selected charset name will be saved into a file inside the backup zip, to allow restore utility to get know in which charset text files should be red. This is a file name (with relative path) inside zip.

        See Also:
        CHARSET_NAME_SAVING_CHARSET, Constant Field Values
      • CHARSET_NAME_SAVING_CHARSET

        static final Charset CHARSET_NAME_SAVING_CHARSET
        Charset of file inside zip with used charset name.

        Backup processor allows a user to specify in which charset he/she want to perform backup. The selected charset name will be saved into a file inside the backup zip, to allow restore utility to get know in which charset text files should be red. This is a character set in with this file is written.

        See Also:
        CHARSET_NAME_SAVING_FILE_NAME
      • METADATA_PATH

        static final String METADATA_PATH
        Internal (inside zip) path where metadata files are placed.
        See Also:
        Constant Field Values
      • INTERM_FILE_NAME_SUFFIX

        static final String INTERM_FILE_NAME_SUFFIX
        Additional file name suffix for backup file when it is not completed yet. This suffix should be removed when backup is completed.

        Note: must be in lower case.

        See Also:
        Constant Field Values
      • BACKUP_DOWNLOAD_URL_INFIX

        static final String BACKUP_DOWNLOAD_URL_INFIX
        Part of URL that specifies backup download context.
        See Also:
        Constant Field Values
      • MISCELANEOUS_SYSTEM_PATHS_TO_BACKUP_WITH_CONFIG

        static final List<String> MISCELANEOUS_SYSTEM_PATHS_TO_BACKUP_WITH_CONFIG
        Additional files that should be exported with configuration. Each entry can be a path to a file or a directory relative to the SYSTEM directory. Use only unix slashes. For directories, the last character must be a slash.
      • MINIMAL_VERSION_WE_CAN_BACKUP

        static final int MINIMAL_VERSION_WE_CAN_BACKUP
        Minimal version of database we can backup. Since this version, TeamCity database contains metadata that are used to determine backup structure.
        See Also:
        Constant Field Values
      • BUILD_LOG_9_INNER_PATH

        static final String BUILD_LOG_9_INNER_PATH
        Local path where build logas are located, relative to the build artifacts directory. The path contains '/' separators, DO NOT replace it with File.separator here.
        Since:
        9.0.2
        See Also:
        Constant Field Values
      • ALLOW_BACKUP_FILE_ANY_PATH_PROPERTY

        static final String ALLOW_BACKUP_FILE_ANY_PATH_PROPERTY
        If this property is not set, TC will not allowed to place backup archive outside of the default backup directory (but this functionaly doesn't follow symbolic links). If the property is set, no restrictions. Implemented because it was asked in TW-17760.
        Since:
        9.0
        See Also:
        Constant Field Values
      • TEAMCITY_MAINTENANCE_EXPORT_SKIP_REGISTRATION_PROPERTY

        static final String TEAMCITY_MAINTENANCE_EXPORT_SKIP_REGISTRATION_PROPERTY
        See Also:
        Constant Field Values
      • TEAMCITY_MAINTENANCE_IMPORT_SKIP_CREATE_EMPTY_DATABASE

        static final String TEAMCITY_MAINTENANCE_IMPORT_SKIP_CREATE_EMPTY_DATABASE
        See Also:
        Constant Field Values
      • TEAMCITY_MAINTENANCE_IMPORT_SKIP_RESTORE_TABLES

        static final String TEAMCITY_MAINTENANCE_IMPORT_SKIP_RESTORE_TABLES
        See Also:
        Constant Field Values
      • TEAMCITY_MAINTENANCE_IMPORT_SKIP_CREATE_INDICES

        static final String TEAMCITY_MAINTENANCE_IMPORT_SKIP_CREATE_INDICES
        See Also:
        Constant Field Values
      • TEAMCITY_MAINTENANCE_IMPORT_IGNORE_ERRORS_CREATE_INDICES

        static final String TEAMCITY_MAINTENANCE_IMPORT_IGNORE_ERRORS_CREATE_INDICES
        See Also:
        Constant Field Values