> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/storage/archive-storage/how-tos/clients-and-tooling/backup-data-with-duplicati/duplicati-for-linux.md).

# Duplicati for Linux

Duplicati is an open-source backup software for Windows, macOS, and Linux. Glesys Archive storage can be used as the backup target.

***

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`.
