Btrbk: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Note on btrbk usage and dry-testing |
||
Line 22: | Line 22: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Usage == | |||
Manually dry running and testing a btrbk configuration | |||
<syntaxhighlight lang="bash"> | |||
btrbk -c /etc/btrbk/remote.conf --dry-run --verbose run | |||
</syntaxhighlight> | |||
The filename <code>remote.conf</code> references the instance name choosen in the example configuration above. | |||
[[Category:Applications]] | [[Category:Applications]] |
Revision as of 02:08, 5 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";
};
};
};
};
Usage
Manually dry running and testing a btrbk configuration
btrbk -c /etc/btrbk/remote.conf --dry-run --verbose run
The filename remote.conf
references the instance name choosen in the example configuration above.