> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directenergypartners.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Copy etc Folder

This section explains how to copy the `etc` folder from your local `dep-ppl-base` repository to the Power Platform controller.

<Note>
  This method is intended only when the controller has no direct internet access to GitHub. If the controller has internet access, prefer using the pull method.
</Note>

<Note>
  Whenever you make changes to configuration files, you must upload the updated `etc` folder (or the changed files inside it) again to the controller.
</Note>

## Prerequisites

<Steps>
  <Step title="Local Repository Ready">
    Ensure you have the `dep-ppl-base` repository on your local machine/computer and that the `etc` folder contains the desired configuration files.
  </Step>

  <Step title="Controller Details">
    Have the controller IP address, admin username, and password available. File transfer will use SFTP (port 22).
  </Step>
</Steps>

## Using FileZilla

<Steps>
  <Step title="Open FileZilla">
    Start FileZilla on your Windows machine.
  </Step>

  <Step title="Connect via SFTP">
    In the Quickconnect bar:

    <ul>
      <li>Host: <code>\<controller\_ip></code></li>
      <li>Username: <code>admin</code></li>
      <li>Password: <code>\<admin\_password></code></li>
      <li>Port: <code>22</code></li>
    </ul>

    Click Quickconnect and accept any host key prompt if shown.
  </Step>

  <Step title="Navigate to Folders">
    <ul>
      <li>Local (left): browse to your local repository's <code>etc</code> folder.</li>
      <li>Remote (right): browse to <code>/opt/plcnext/appshome/data/60002172000969</code>.</li>
    </ul>
  </Step>

  <Step title="Upload the etc Folder">
    Drag the local <code>etc</code> folder (or the modified files inside it) to the remote pane to upload. Approve overwrite if prompted.
  </Step>

  <Step title="Verify Upload">
    Confirm the <code>etc</code> folder and files appear on the remote path. Re-run this upload whenever you change files locally.
  </Step>
</Steps>

## Using WinSCP

<Steps>
  <Step title="Open WinSCP">
    Start WinSCP and click New Site.
  </Step>

  <Step title="Configure SFTP Session">
    Set:

    <ul>
      <li>File protocol: <code>SFTP</code></li>
      <li>Host name: <code>\<controller\_ip></code></li>
      <li>Port number: <code>22</code></li>
      <li>User name: <code>admin</code></li>
      <li>Password: <code>\<admin\_password></code></li>
    </ul>

    Click Login and accept the host key if prompted.
  </Step>

  <Step title="Navigate to Folders">
    In the two‑pane view:

    <ul>
      <li>Left: open your local repository's <code>etc</code> folder.</li>
      <li>Right: open <code>/opt/plcnext/appshome/data/60002172000969</code>.</li>
    </ul>
  </Step>

  <Step title="Upload the etc Folder">
    Drag the local <code>etc</code> folder (or selected changed files) to the right pane. Confirm overwrite if asked.
  </Step>

  <Step title="Verify Upload">
    Check the files are present on the controller. Repeat this upload after every local change.
  </Step>
</Steps>
