Syncplicity Support

Search our knowledgebase to get the help you need, today

Follow

Initialization policy

The Initialization Policy allows users to have an action performed prior to a job's first execution.

Initialization Options

Initialization Policy determines how the job will behave the first time it executes. There are 2 options available:

  • none - Nothing is done prior to the first job execution (this is the default)
  • purge_destination - All files and folders in the destination path of the job are deleted prior to starting the file transfer

Example JSON

Initialization Example

{
  "name":"Initialization_test",
  "kind": "transfer",
  "transfer": {
    "audit_level": "trace",
    "transfer_type": "copy",
    "on_initialize": "purge_destination",
    "source": {
      "connection": {
        "id": "{{nfs_connection}}"
      },
      "target": {
        "path":"/"
      }
    },
    "destination": {
      "connection": {
        "id": "{{cloud_connection}}"
      },
      "target": {
        "path": "/proptest1"
      }
    }
  },
  "schedule": {
    "mode": "manual"
  }
}

Powered by Zendesk