Immich: Difference between revisions

Arnecc (talk | contribs)
added fixes for 25.05 upgrade issue
add tip for borg backup
Line 40: Line 40:
};
};
}}
}}
=== Using borg for backups ===
Following Immichs [https://immich.app/docs/administration/backup-and-restore/ backup docs] and [https://immich.app/docs/guides/template-backup-script backup script] an automated backup using [[Borg backup]] could look something like this:
{{File|3=services.borgbackup.jobs."Immich" = {
  paths = "/var/lib/immich";
  repo = "<path-to-borg-repo>";
  startAt = "Sat 04:00";
  compression = "zstd";
  encryption.mode = "none";
  prune.keep = {
    last = 2;
  };
};|name=/etc/nixos/configuration.nix|lang=nix}}
Make sure to manually create a borg repo at the desired location beforehand with <code>sudo borg init --encryption=none <path-to-borg-repo</code>
== Troubleshooting ==
== Troubleshooting ==