Btrbk: Difference between revisions

imported>Onny
Add notes on sudo entry on remote host
imported>Onny
mNo edit summary
Line 17: Line 17:
== Configuration ==
== Configuration ==


Following example configuration will create a weekly incremental backup of a local Btrfs subvolume called <code>nixos</code> and sends it compressed to the remote host <code>myhost</code>. The mount point <code>/btr_pool</code> as referenced above, contains the subvolume.
Following example configuration will create a weekly incremental backup of a local Btrfs subvolume called <code>nixos</code> and sends it compressed to the remote host <code>myhost</code>. The mount point <code>/btr_pool</code>, as referenced above, contains the subvolume.


The user <code>btrbk</code> together with the private key <code>/etc/btrbk_key</code> is used for authentication. 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]].
The user <code>btrbk</code> together with the private key <code>/etc/btrbk_key</code> is used for authentication. 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]].