MirrorNest
← Tous les guides

Kopia

Kopia is a fast, secure, cross-platform backup tool that snapshots files into a deduplicated, encrypted, and compressed repository on local disk or a wide range of cloud/object storage backends.

Système : Debian/Ubuntu Linux (also Windows/MacOS/RPM-based distros)BackupSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de Kopia, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
  1. 1Add the official APT repository

    curl -s https://kopia.io/signing-key | sudo gpg --dearmor -o /etc/apt/keyrings/kopia-keyring.gpg
    echo "deb [signed-by=/etc/apt/keyrings/kopia-keyring.gpg] http://packages.kopia.io/apt/ stable main" | sudo tee /etc/apt/sources.list.d/kopia.list
    sudo apt update
  2. 2Install Kopia CLI and UI

    sudo apt install kopia
    sudo apt install kopia-ui
  3. 3Create a backup repository

    A repository is where deduplicated, encrypted snapshot data lives; this example uses the local filesystem provider.

    kopia repository create filesystem --path /tmp/my-repository

    Kopia asks for an encryption password here — if you lose it, the repository cannot be recovered.

  4. 4Take your first snapshot

    kopia repository connect filesystem --path /tmp/my-repository
    kopia snapshot create $HOME/Documents
    kopia snapshot list $HOME/Documents
  5. 5Run Kopia as a server (optional)

    For centrally managing backups from multiple machines, run Kopia in server mode with API support.

    kopia server start --address=0.0.0.0:51515

    Default server/API port is 51515.