> For the complete documentation index, see [llms.txt](https://plebbit-guides.gitbook.io/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plebbit-guides.gitbook.io/guides/windows-guides/transfer-your-subplebbit-to-a-server-windows.md).

# Transfer your Subplebbit to a Server / Windows

**- Open windows PowerShell.** \
PowerShell is *a cross-platform task automation solution made up of a command-line shell, a scripting* language, and a configuration management. We will be using this to trasnsfer files from your Windows computer to your server.

<figure><img src="https://244976452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F12AjjJNUZQeszRZ1biS2%2Fuploads%2Ft6ZHQ6Zol90r2tRBKIb3%2FPowershell.png?alt=media&amp;token=f8e68abe-df35-4916-ab86-68706e34ee2e" alt=""><figcaption></figcaption></figure>

**- Run your SSH command to enter your server**\
In order to transfer your subplebbit to your server, you will use the "**ssh**" command to enter the server from your PC through PowerShell, then install and start plebbit cli. The IP address 11.111.111.11 is just an example, you will need to use your own specifically.\
\
**SSH** stands for Secure Shell. It is a cryptographic network protocol used for operating network services securely over an unsecured network.

<figure><img src="https://244976452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F12AjjJNUZQeszRZ1biS2%2Fuploads%2Fw5pb4Sbj94GYZlhu64dM%2FStep%201.png?alt=media&amp;token=ca56fc29-a566-4061-a3d1-d2a224694669" alt=""><figcaption></figcaption></figure>

**- Next we will install the Plebbit-CLI:**\
You need to install [vc-redist](https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170) first. After you install `vc-redist`, download the installer of [plebbit](https://github.com/plebbit/plebbit-cli/releases/latest/download/plebbit_installer_win32_x64.exe) and next your way to the end.\
\
vc-redist:\
\- <https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170>\
\
Plebbit Client:\
\- <https://github.com/plebbit/plebbit-cli/releases/latest/download/plebbit_installer_win32_x64.exe>\
\
**-** **Install both of these.**

<figure><img src="https://244976452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F12AjjJNUZQeszRZ1biS2%2Fuploads%2FYeePJzAJwRZ9bWvAvW1w%2FStep%202.png?alt=media&amp;token=74bdae8f-1549-452d-be00-1d020d074b70" alt=""><figcaption></figcaption></figure>

**- Next you will need to run the Plebbit CLI:** \
In the instance of PowerShell that you have open that has been connected to your server with the "**ssh**" command, run the command "**Plebbit Daemon**"\
\
After you run the "**Plebbit Daemon**" command it will display several rows of information related to your subplebbits. Save the location of your subplebbit data path somewhere, you'll need it to transfer your subplebbit folder to to your servers.\
\
**Example:&#x20;*****"C:\Users\New Owner P C\AppData\Local\plebbit\Data"***

<figure><img src="https://244976452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F12AjjJNUZQeszRZ1biS2%2Fuploads%2FOnTx6X38SPEY6zY3lgvJ%2Fdata%20path.png?alt=media&amp;token=4fdb7be0-0ed9-4267-bf83-133823d2d74d" alt=""><figcaption></figcaption></figure>

If this directory cannot be found manually browsing your file system, copy and paste the directory into your navigation bar

<figure><img src="https://244976452-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F12AjjJNUZQeszRZ1biS2%2Fuploads%2FqckEGeQ1gUHhJexUs9nX%2FStep%204.png?alt=media&amp;token=56019a47-395e-4274-a499-e29b3c3d94f4" alt=""><figcaption></figcaption></figure>

**- Now we will install the Plebbit-CLI onto your server remotely.**\
Go back to the the PowerShell window that you used the "**ssh**" command to access your server with. \
\
Run the command "**Plebbit Daemon**" in your powershell window.\
***Plebbit Daemon***\
\
If this gives you an error and does not work, run this command\
***echo 'export PATH="$PATH":\~/.local/bin' >> \~/.bashrc && source \~/.bashrc***\
\
If running the Plebbit Daemon command didn't work before and you have run the "**echo**" command, run  "**Plebbit Daemon**" again now.\
\
**- Next you will be using the "spc" command in a new powershell window to transfer your documents to the server.**\
\
scp - r Your\PC\Plebbit\Directory Yourservername\@11.111.111.11:/root/.local/share/plebbit\
\
**Your\PC\Plebbit\Directory:** Where your plebbit files are stored in your PC.\
**Yourservername:** The name of the server you are transferring the files to.\
**11.111.111.11:** Your servers IP address.\
\
**Example:** scp -r C:\Users\New Owner P C\AppData\Local\plebbit\Data root\@11.11.111.111:/root/.local/share/plebbit\
\
Thats it!

<br>
