# Duplicati for Linux

***

To run Duplicati on Linux (we use Debian 12 in this example), download the `.deb` package from the [Duplicati website](http://www.duplicati.com/) and install it with `sudo apt install ./package-name.deb`.

{% code title="Multiple commands" %}

```
wget https://updates.duplicati.com/stable/duplicati-2.1.0.5_stable_2025-03-04-linux-x64-gui.deb
sudo apt install ./duplicati-2.1.0.5_stable_2025-03-04-linux-x64-gui.deb
```

{% endcode %}

When the installation is complete, start your first backup using:

{% code title="Command" %}

```
duplicati-cli backup ftp://[user]:[password]@[archive-server]/[optional subfolder] [path to what you want to backup]
```

{% endcode %}

For example:

{% code title="Command" %}

```
duplicati-cli backup ftp://cl12345_user:UFjDdnBM2uQMHeNg@archive0c.glesys.com/backup/user/ /home/user
```

{% endcode %}

To protect your data, Duplicati encrypts it before sending it out, so you now need to choose a password. Write it down and store it securely—you’ll need it later if you ever want to restore your backup.

Duplicati will now make a full copy of your data. Each subsequent run will create an incremental backup that only includes the changes.

Read more about the backup process on [Duplicati’s website](https://duplicati.readthedocs.io/en/latest/01-introduction/#the-backup-process-explained).

To schedule a backup to run every night, add the following line to your crontab:

```
0 0 * * * duplicati-cli backup ftp://[user]:[password]@[archive-server]/[optional subfolder] [path to what you want to backup] --passphrase="MyS3cretPassWorD" >/dev/null 2>&1
```

To restore an entire folder, use the restore command:

{% code title="Command" %}

```
duplicati-cli restore ftp://[user]:[password]@[archive-server]/[optional subfolder] --restore-path=/tmp/restore/
```

{% endcode %}

This will now restore the entire backup located in the path you chose to `/tmp/restore`.


---

# Agent Instructions: 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:

```
GET https://docs.glesys.com/products/storage/archive-storage/how-tos/clients-and-tooling/backup-data-with-duplicati/duplicati-for-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
