Restic: Difference between revisions
imported>Cyounkins Created page with "Restic is a fast and secure backup program. == Installing == Add <code>restic</code> to <code>environment.systemPackages</code> like so: <syntaxHighlight lang=nix> environm..." |
m Category:Applications Category:Backup. Link to restic. |
||
Line 1: | Line 1: | ||
Restic is a fast and secure backup program. | [https://restic.net/ Restic] is a fast and secure backup program. | ||
== Installing == | == Installing == | ||
Line 28: | Line 28: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
[[Category:Applications]] | |||
[[Category:Backup]] |
Latest revision as of 16:41, 20 June 2024
Restic is a fast and secure backup program.
Installing
Add restic
to environment.systemPackages
like so:
environment.systemPackages = with pkgs; [
restic
];
Security Wrapper
If you want to back up your system without running restic as root, you can create a user and security wrapper to give restic the capability to read anything on the filesystem as if it were running as root. The following will create the wrapper at /run/wrappers/bin/restic
users.users.restic = {
isNormalUser = true;
};
security.wrappers.restic = {
source = "${pkgs.restic.out}/bin/restic";
owner = "restic";
group = "users";
permissions = "u=rwx,g=,o=";
capabilities = "cap_dac_read_search=+ep";
};