SSH_FILTER_BTRBK(1) | Btrbk Manual | SSH_FILTER_BTRBK(1) |
NAME
ssh_filter_btrbk - ssh command filter script for btrbk
SYNOPSIS
ssh_filter_btrbk.sh [-s|--source] [-t|--target] [-d|--delete] [-i|--info] [--snapshot] [--send] [--receive] [-p|--restrict-path <path>] [-l|--log] [--sudo]
DESCRIPTION
ssh_filter_btrbk.sh restricts SSH commands to commands used by btrbk. It examines the SSH_ORIGINAL_COMMAND environment variable (set by sshd) and executes it only if it contains commands used by btrbk.
The accepted commands are specified by the "--source", "--target", "--delete" and "--info" options.
The following commands are always allowed:
Example line in /root/.ssh/authorized_keys on a backup target host:
command="ssh_filter_btrbk.sh --target --delete --restrict-path /mnt/btr_backup",restrict ssh-rsa AAAAB3NzaC1...hwumXFRQBL btrbk@example.org
OPTIONS
-s, --source
-t, --target
-d, --delete
-i, --info
--snapshot
--send
--receive
-p, --restrict-path <path>
It is not possible to restrict commands to exact subvolume names, as btrfs-receive(8) takes a <path> as argument (directory, not including the subvolume file name to be created, this is encoded in the send-stream).
-l, --log
--sudo
AVAILABILITY
Please refer to the btrbk project page https://digint.ch/btrbk/ for further details.
SEE ALSO
AUTHOR
Axel Burri <axel@tty0.ch>
2023-03-25 | Btrbk 0.32.6 |