> For the complete documentation index, see [llms.txt](https://docs.backupflows.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.backupflows.com/connecting-the-vps.md).

# Connecting the VPS

## Connecting Your Server to Backup Flows

This guide explains how to connect your server (Linux or Windows) to Backup Flows using the official agent.

### Requirements

Before starting, ensure you have:

* A VPS or dedicated server
* Administrator (Windows) or root/sudo (Linux) access
* An active Backup Flows account
* Your agent token from the dashboard

***

### Linux (Ubuntu / Debian)

#### Step 1: Install the Agent

Run the following command in your terminal:

```bash
curl -s https://api.backupflows.com/install.sh | bash
```

#### Step 2: Authenticate the Agent

```bash
backupflows-agent login --token YOUR_TOKEN
```

***

### Windows Server

#### Step 1: Download the Agent

Download the latest version from:

<https://api.backupflows.com/agent/windows/latest>

#### Step 2: Run the Agent

Open Command Prompt or PowerShell and run:

```powershell
backupflows-agent.exe login --token YOUR_TOKEN
```

***

### Verification

After logging in, your server should appear in the Backup Flows dashboard.

If it does not appear:

* Check your internet connection
* Verify the token is correct
* Ensure the agent is running properly

***

### Next Steps

Once connected, you can:

* Configure backup jobs
* Schedule automatic backups
* Monitor server status
* Manage backups from the dashboard

***

### Security Note

Keep your agent token secure. Do not share it publicly or store it in unsecured locations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.backupflows.com/connecting-the-vps.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
