Restic: Difference between revisions

Restic: add upstream doc link for configuring the backup and mention initialize option
Add clarification to further modifications needed for wrapper
Line 40: Line 40:
};
};
</syntaxHighlight>
</syntaxHighlight>
Note that you will have to set your Restic configuration to use the wrapper using the [https://search.nixos.org/options?channel=unstable&show=services.restic.backups.%3Cname%3E.package&from=0&size=50&sort=relevance&type=packages&query=services.restic.backups services.restic.backups.<name>.package] option, for example <ref>https://github.com/NixOS/nixpkgs/issues/341999#issuecomment-2558504576</ref>,
<syntaxHighlight lang=nix>
services.restic.backups.foo = {
  # ...
  user = "restic";
  package = pkgs.writeShellScriptBin "restic" ''
    exec /run/wrappers/bin/restic "$@"
  '';
};
</syntaxHighlight>


[[Category:Applications]]
[[Category:Applications]]
[[Category:Backup]]
[[Category:Backup]]