## zowe › endevor-bridge-for-git › update › sync-back-settings

Update sync-back schedule used by Endevor Bridge for Git.

#### Usage

zowe endevor-bridge-for-git update sync-back-settings [context] [mapping] [options]

#### Positional Arguments

- `context` (string)

  - Git-Endevor mapping context (ID of the organization, project, team, or the Git repository owner).

- `mapping` (string)

  - Git-Endevor mapping name (Git repository ID).

#### Options

- `--enabled` (boolean)

  - Indicates if the sync-back option is enabled or disables one if set to false.

    Default value: true

- `--overwrite` (boolean)

  - Overwrites (true) or inherits (false) the global sync-back settings.

    Default value: true

- `--startDate` (string)

  - Indicates the start date of the sync-back schedule in UTC time zone. Format YYYY-MM-DD.

- `--startTime` (string)

  - Indicates the start time of the sync-back schedule in UTC time zone. Format HH:MM:SS (24 hour format).

#### Required Options

- `--interval` (number)

  - Specifies the number of time interval units for a scheduled sync-back run.

    Default value: 1

- `--timeUnit` (string)

  - Specifies a time unit for the scheduled sync-back run interval.

    Default value: HOURS
    Allowed values: MINUTES, HOURS, DAYS, WEEKS, MONTHS

#### Endevor Bridge for Git connection options (you can also use an 'ebg' profile)

- `--protocol` | `--prot` (string)

  - Endevor Bridge for Git SCM protocol.

    Default: https

    Default value: https
    Allowed values: http, https

- `--host` | `-H` (string)

  - Endevor Bridge for Git hostname.

- `--port` | `-P` (number)

  - Endevor Bridge for Git port.

- `--user` | `-u` (string)

  - Endevor Bridge for Git username (your git username).

- `--token` | `-t` (string)

  - Git personal access token (Obtain the token from your Git Enterprise Server).

- `--reject-unauthorized` | `--ru` (boolean)

  - Reject self-signed certificates.

    Default: false

- `--ebg-base-path` (string)

  - The Endevor Bridge for Git Rest API base path.

#### Profile Options

- `--ebg-profile` | `--ebg-p` (string)

  - The name of a (ebg) profile to load for this command execution.

- `--base-profile` | `--base-p` (string)

  - The name of a (base) profile to load for this command execution.

#### Base Connection Options

- `--password` | `--pass` | `--pw` (string)

  - Password to authenticate to service on the mainframe.

- `--token-type` | `--tt` (string)

  - The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.

- `--token-value` | `--tv` (string)

  - The value of the token to pass to the API.

- `--cert-file` (local file path)

  - The file path to a certificate file to use for authentication.

    Note: The CLI does not support certificate files that require a password. For more information, search Troubleshooting PEM Certificates in Zowe Docs.

- `--cert-key-file` (local file path)

  - The file path to a certificate key file to use for authentication

#### Examples

- Update global sync-back schedule from the mapped Endevor locations:

  - `zowe endevor-bridge-for-git update sync-back-settings --startDate 2024-12-30 --startTime 21:15:45 --interval 1 --timeUnit HOURS`

- Update a mapping sync-back schedule from the mapped Endevor locations:

  - `zowe endevor-bridge-for-git update sync-back-settings MY-CONTEXT MY-MAPPING --enabled true --overwrite true --startDate 2024-12-30 --startTime 21:15:45 --interval 1 --timeUnit HOURS`