Btrbk: Difference between revisions
imported>Onny Make clear that instance name is custom |
imported>Onny Update example setup reflecting latest module changes |
||
Line 23: | Line 23: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
services.btrbk = { | services.btrbk = { | ||
instances."remote_myhost" = { | instances."remote_myhost" = { | ||
onCalendar = "weekly"; | onCalendar = "weekly"; | ||
Line 38: | Line 37: | ||
}; | }; | ||
</nowiki>}} | </nowiki>}} | ||
{{Note|Before the release of NixOS 24.05 you'll have to add the corresponding compression tool manually with `services.btrbk.extraPackages = [ pkgs.lz4 ];`}} | |||
The user has to be created on the remote host and needs root permissions on the commands <code>btrfs</code>, <code>readlink</code> and <code>test</code>, for example via [[sudo]]. For transport stream compression using <code>lz4</code> to work, the package must also be installed on the target host. The target host configuration for Btrbk could look like this: | The user has to be created on the remote host and needs root permissions on the commands <code>btrfs</code>, <code>readlink</code> and <code>test</code>, for example via [[sudo]]. For transport stream compression using <code>lz4</code> to work, the package must also be installed on the target host. The target host configuration for Btrbk could look like this: |