Btrbk: Difference between revisions
imported>Onny Initial page |
imported>Onny mNo edit summary |
||
Line 13: | Line 13: | ||
ssh_identity = "/etc/btrbk_key"; | ssh_identity = "/etc/btrbk_key"; | ||
ssh_user = "btrbk"; | ssh_user = "btrbk"; | ||
stream_compress = "lz4"; | |||
volume."ssh://myhost/mnt" = { | volume."ssh://myhost/mnt" = { | ||
target = "/mnt"; | target = "/mnt"; |
Revision as of 11:52, 4 February 2023
Btrbk, a tool for creating snapshots and remote backups of btrfs subvolumes.
Configuration
Following example configuration will create a weekly incremental backup of a local Btrfs subvolume called nixos
and sends it compressed to a remote host myhost
via ssh using provided authentication credentials.
services.btrbk = {
extraPackages = [ pkgs.lz4 ];
instances.remote = {
onCalendar = "weekly";
settings = {
ssh_identity = "/etc/btrbk_key";
ssh_user = "btrbk";
stream_compress = "lz4";
volume."ssh://myhost/mnt" = {
target = "/mnt";
subvolume = "nixos";
};
};
};
};